aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-chaospy/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-chaospy/APKBUILD')
-rw-r--r--community/py3-chaospy/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/py3-chaospy/APKBUILD b/community/py3-chaospy/APKBUILD
new file mode 100644
index 00000000000..6643753138f
--- /dev/null
+++ b/community/py3-chaospy/APKBUILD
@@ -0,0 +1,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
+"