# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-statys
_pkgorig=statys
pkgver=1.0.1
pkgrel=6
pkgdesc="Statistical analyzers to provide more robust comparisons between Machine Learning techniques"
url="https://github.com/gugarosa/statys"
arch="noarch !x86" #assertion errors
license="Apache-2.0"
depends="
	python3
	py3-matplotlib
	py3-numpy
	py3-scipy
	"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest xvfb-run"
subpackages="$pkgname-pyc"
source="https://github.com/gugarosa/statys/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz
	verspec.patch
	"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	xvfb-run -a python3 -m pytest -k 'not plot'
}

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

sha512sums="
e729268ff5c93b2088806e61cc8cce6378da712f90c7cb997583b89e543b5e4672a9852d0e2f5ba96e8d31a80840d1c3e255b88f4a1f8c4b6c4761d20c8e29f7  statys-1.0.1.tar.gz
fe4fe43cb155622193bab7a2c8b5d45b2e5d6a8742d125b3a2126fc9845e756c24f9ba4b9331bb41dcf50df7c0c46a92fb3d259b536f18f713fe0930a091cab1  verspec.patch
"
