blob: b90874e7948750a8a4c07118488d014f11f1f099 (
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
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: xia0er <xia0er@gmail.com>
pkgname=python-pymc
_name=${pkgname#python-}
pkgver=5.10.2
pkgrel=1
pkgdesc="Markov chain Monte Carlo for Python"
arch=(any)
url="https://github.com/pymc-devs/pymc"
license=(MIT)
depends=(
ipython
python
python-arviz
python-cachetools
python-cloudpickle
python-fastprogress
python-graphviz
python-matplotlib
python-networkx
python-numpy
python-pandas
python-pytensor
python-pytest
python-scipy
python-typing_extensions
python-xarray
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('a0b28c34220f0c46fddd8c0c947509c853d51696cad186ea2c2372939b9a32e1')
_archive="$_name-$pkgver"
build() {
cd "$_archive"
python -m build --wheel --no-isolation
}
check() {
cd "$_archive"
python -m pytest \
tests/test_initial_point.py \
tests/test_math.py \
tests/test_model_graph.py \
tests/test_printing.py \
tests/test_pytensorf.py \
tests/test_testing.py \
tests/test_util.py \
-k "\
not test_softmax_logsoftmax_no_warnings \
and not TestImputationModel \
"
}
package() {
cd "$_archive"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|