# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-permetrics
pkgver=2.0.0
pkgrel=2
pkgdesc="Artificial intelligence (AI, ML, DL) performance metrics implemented in Python"
url="https://github.com/thieu1995/permetrics"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-numpy py3-scipy"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/p/permetrics/permetrics-$pkgver.tar.gz"
builddir="$srcdir/permetrics-$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 permetrics"
}

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

sha512sums="
adae56407b352c074e96843c52b5aae1da74539940e7480bfbff4e084d3082a94c8a305ffa4a5af7e7980d2e78f66233e3793cc85e1f02c423465f18ef645371  py3-permetrics-2.0.0.tar.gz
"
