-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
54 lines (51 loc) · 1.68 KB
/
PKGBUILD
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
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Chih-Hsuan Yen <[email protected]>
# Contributor: Daniel Bershatsky <[email protected]>
pkgname=python-etils
_pkgname="${pkgname#python-}"
pkgver=1.4.1
pkgrel=1
pkgdesc='Collection of eclectic utils for python'
url='https://github.com/google/etils'
license=('Apache')
arch=('any')
depends=('python-typing_extensions')
makedepends=('python-build' 'python-flit-core' 'python-installer')
# NOTE Do not run tests. Assume that it is tested well since we does not have
# binary dependencies here.
# checkdepends=(
# 'python-chex'
# 'python-jax'
# 'python-pylint'
# 'python-pytest'
# 'python-pytest-subtests'
# 'python-pytest-xdist'
# 'python-pytorch'
# 'python-tensorflow'
# )
# See https://github.com/google/etils/blob/main/pyproject.toml for optional
# dependencies
optdepends=(
'ipython: for etils.ecolab'
'python-absl: for etils.eap, etils.etqdm'
'python-dm-tree: for etils.etree.tree'
'python-importlib_resources: for epath'
'python-jax: for etils.etree.jax'
'python-mediapy: for etils.ecolab'
'python-numpy: for etils.array_types, etils.ecolab, etils.enp'
'python-simple-parsing: for etils.eap'
'python-tensorflow: for etils.etree.nest'
'python-tqdm: for etils.etqdm'
'python-zipp: for etils.epath'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/google/${_pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('58f82085cfe89634a628f343f63385edfa5495f9fd02bfd70e9397111d3959f0')
build() {
python -m build -nw $_pkgname-$pkgver
}
package() {
python -m installer \
--compile-bytecode 1 \
--destdir $pkgdir \
$_pkgname-$pkgver/dist/$_pkgname-*.whl
}