# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-numpoly
_pkgorig=numpoly
pkgver=1.2.13
pkgrel=0
pkgdesc="Numpy compatible polynomial representation"
url="https://github.com/jonathf/numpoly"
arch="noarch !armhf !armv7 !x86 !ppc64le" # failed tests on 32 bit
license="BSD-2-Clause"
depends="python3 py3-numpy"
checkdepends="py3-pytest py3-sympy"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/jonathf/numpoly/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/numpoly-$pkgver"
options="!check" # temporary fix - numpy deprecations

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

check() {
	python3 -m pytest
}

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

sha512sums="
95a227869eeafffcbc34a9cb50620aae6e80fcd0f8ffd47b37cf478f1c52648f496a4b27e7347b7689ec6090d757a56ae9976fc42f21e08143169fd3f8f4e1df  numpoly-1.2.13.tar.gz
"
