blob: 7c5ffd518fdb92d08c19a33692cfc43b4ef3544c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname='python-jax'
pkgver=0.4.35
pkgrel=1
pkgdesc='Composable transformations of Python+NumPy programs'
arch=('any')
url='https://github.com/jax-ml/jax/'
license=('Apache')
groups=('jax')
depends=('python-absl'
'python-jaxlib>=0.4.35'
'python-ml-dtypes'
'python-numpy'
'python-opt_einsum'
'python-scipy')
optdepends=(
'python-protobuf: Australis'
'python-requests: Distributed computations'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("jax-${pkgver}.tar.gz::$url/archive/refs/tags/jax-v${pkgver}.tar.gz")
sha256sums=('65e086708ae56670676b7b2340ad82b901d8c9993d1241a839c8990bdb8d6212')
build() {
JAX_RELEASE=$pkgver python -m build -nw jax-jax-v$pkgver
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
jax-jax-v$pkgver/dist/jax-$pkgver-*.whl
}
|