blob: b9dc7893c9c5b175e69eec170eb2b2c9824cd2ca (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
pkgname=python-pytensor
_name=${pkgname#python-}
pkgver=2.14.2
pkgrel=1
pkgdesc="Fork of Aesara -- Library for defining, optimizing, and efficiently evaluating mathematical expressions involving multi-dimensional arrays"
arch=(x86_64)
url="https://github.com/pymc-devs/pytensor"
license=(custom)
depends=(
glibc
python
python-cons
python-etuples
python-filelock
python-llvmlite
python-logical-unification
python-minikanren
python-numpy
python-pydot
python-scipy
python-setuptools
python-typing_extensions
)
makedepends=(
cython
python-build
python-installer
python-versioneer
python-wheel
)
checkdepends=(
python-pytest
)
optdepends=(
'python-numba: for graph transpilation compilation'
'python-jax: for graph transpilation compilation'
)
source=(
"$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/rel-$pkgver.tar.gz"
"remove-bin-package.patch"
)
sha256sums=(
'1caf426ce31e726f70f1f2bbdf1e59387ea30b5f18b11ee5e4aee44ddc49dba8'
'73360d53a5c5e5718a544c69218d3d64adc2390007a9b6781f7b61cc32415e59'
)
_archive="$_name-rel-$pkgver"
prepare() {
cd "$_archive"
patch --forward --strip=1 --input="$srcdir/remove-bin-package.patch"
sed -i 's/versioneer\[toml\]==/versioneer\[toml\]>=/' pyproject.toml
}
build() {
cd "$_archive"
python -m build --wheel --no-isolation
}
check() {
cd "$_archive"
python -m pytest \
tests/misc/ \
tests/test_breakpoint.py \
tests/test_config.py \
tests/test_printing.py \
tests/test_raise_op.py \
tests/test_updates.py
}
package() {
cd "$_archive"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 doc/LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|