summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 33a851565caadcbae8d5f2c6a19d391e7ec6c669 (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
35
36
37
38
39
40
41
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-flax
_name=${pkgname#python-}
pkgver=0.6.11
pkgrel=1
pkgdesc='A neural network library and ecosystem for JAX designed for flexibility'
arch=('any')
url='https://github.com/google/flax'
license=('Apache')
groups=('jax')
depends=(
    'python-jax'
    'python-matplotlib'
    'python-msgpack'
    'python-numpy'
    'python-optax'
    'python-pyyaml'
    'python-rich'
    'python-tensorstore'
    'python-typing_extensions'
)
makedepends=('python-build' 'python-installer' 'python-setuptools'
             'python-setuptools-scm' 'python-wheel')
optdepends=(
    'python-orbax: Checkpointing routines for JAX.'
    'tensorboard: TensorBoard visualization and logging.'
)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('ecedf179ceb16c0b511982a293834bb13086168dce1dff697ac083efa818fc72')

build() {
    python -m build -nw $_name-$pkgver
}

package() {
    python -m installer \
        --compile-bytecode 1 \
        --destdir=$pkgdir \
        $_name-$pkgver/dist/*.whl
}