aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-chaospy/APKBUILD
blob: 6643753138f73f89f8d9c7f2e57f21ace88908a7 (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
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-chaospy
_pkgorig=chaospy
pkgver=4.3.13
pkgrel=2
pkgdesc="Numerical tool for performing uncertainty quantification"
url="https://github.com/jonathf/chaospy"
arch="noarch !x86 !armhf !armv7 !s390x !ppc64le" # assertion errors and py3-numpoly
license="MIT"
depends="
	python3
	py3-matplotlib
	py3-numpoly
	py3-numpy
	py3-scipy
	py3-scikit-learn
	"
checkdepends="py3-pytest"
makedepends="
	py3-gpep517
	py3-setuptools_scm
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jonathf/chaospy/archive/refs/tags/v$pkgver.tar.gz
	importlib.patch
	"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m pytest -p no:warnings
}

package() {
	python3 -m installer --destdir="$pkgdir" .dist/*.whl
}

sha512sums="
833c09b5205a1ec2de2a395e62d980a893d73ef7cddbebb3b5c8763f332b0b8eae143e09c485c66a3e5f614b3826ba6c3a8167fdf4ff00def6aff2ad01f52312  py3-chaospy-4.3.13.tar.gz
5b76498a070d2864613fe0e2a29506c6a02bdb2248c842b38cf08eebcdc64fffc07f890644ee3d962a584ad83237b99bafe27dc926082ed4a904254aa6d6bc04  importlib.patch
"