# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-chaospy
_pkgorig=chaospy
pkgver=4.3.19
pkgrel=0
pkgdesc="Numerical tool for performing uncertainty quantification"
url="https://github.com/jonathf/chaospy"
# significant test failure on armv7 armhf x86
arch="noarch !armv7 !armhf !x86"
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"
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="
a3e415a55fd1e2b8afaf09c56ccb5ef11dfef8763e56427e1198e3882adec952e44f6c08a852f7ea923e1e9c02978fc5888776c611255b4a1483057b938bfa70  py3-chaospy-4.3.19.tar.gz
"
