blob: a7283e876619d2b606136d59b7630e3bb81b334d (
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
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
pkgname=python-pytensor
_name=${pkgname#python-}
pkgver=2.10.1
pkgrel=2
pkgdesc="Fork of Aesara -- Library for defining, optimizing, and efficiently evaluating mathematical expressions involving multi-dimensional arrays"
arch=(any)
url="https://github.com/pymc-devs/pytensor"
license=(custom)
conflicts=(python-aesara)
makedepends=(python-{build,installer,wheel,versioneer})
depends=(
python-cons
python-etuples
python-filelock
python-logical-unification
python-minikanren
python-numpy
python-scipy
python-typing_extensions
)
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")
sha256sums=('01c9ede1672d61c7b6e878884eb297c5442585091ea43433b3e95dc59c2a82d1')
_archive="$_name-rel-$pkgver"
build() {
cd "$_archive"
python -m build --wheel --no-isolation
}
package() {
cd "$_archive"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 doc/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|