# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-ordpy
pkgver=1.1.3
pkgrel=1
pkgdesc="A Python package for data analysis with permutation entropy and ordinal network methods"
url="https://github.com/arthurpessa/ordpy"
arch="noarch"
license="MIT"
depends="python3 py3-numpy"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/o/ordpy/ordpy-$pkgver.tar.gz"
builddir="$srcdir/ordpy-$pkgver"

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

# no tests provided by the upstream; use smoke tests
check() {
	PYTHONPATH=build/lib python3 -c "import ordpy"
}

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

sha512sums="
5b79ef17bd4db2972f8444ce9903ea501e511da06ea024cd4afecb682c96d669f2b4c3262605f24d99d1f95bc16e0700f0caf207fd1df5d2b23c8b6cc7e30dbc  py3-ordpy-1.1.3.tar.gz
"
