blob: 5415f713d0af00979dce964d870ab9ddd3ea63bb (
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
42
|
# Maintainer: Daniel Bershatsky <d.bershatsky2@skoltech.ru> (aur.archlinux.org/account/daskol)
# Contributor: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
pkgname=python-flax
_pkgname=${pkgname#python-}
pkgver=0.8.4
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-msgpack'
'python-numpy'
'python-optax'
'python-orbax-checkpoint'
'python-rich'
'python-tensorstore'
'python-typing_extensions'
'python-yaml'
)
makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-setuptools-scm' 'python-wheel')
optdepends=(
'python-matplotlib: Export to TensorBoard.'
'tensorboard: TensorBoard visualization and logging.'
)
source=("flax-$pkgver.tar.gz::https://github.com/google/flax/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('770eaa4d9d3fe8a139780bae0e833373b1237d113ad40350df372614de6aa901')
build() {
python -m build -nw $_pkgname-$pkgver
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir=$pkgdir \
$_pkgname-$pkgver/dist/$_pkgname-$pkgver*.whl
}
|