# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-niaautoarm
pkgver=0.1.1
pkgrel=0
pkgdesc="AutoML method for constructing the full ARM pipelines"
url="https://github.com/firefly-cpp/NiaAutoARM"
arch="noarch"
license="MIT"
depends="python3 py3-niaarm py3-niapy py3-pandas"
checkdepends="py3-pytest-xdist"
makedepends="py3-gpep517 py3-poetry-core"
subpackages="$pkgname-pyc"
source="https://github.com/firefly-cpp/NiaAutoARM/archive/$pkgver/niaautoarm-$pkgver.tar.gz"
builddir="$srcdir/NiaAutoARM-$pkgver"

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

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 -m pytest -n auto
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/niaautoarm-$pkgver-py3-none-any.whl

}

sha512sums="
fb0d3b105d391f565bee302bf58b1ceb648d15a57d80584711484cf1a020175e2bb5d8d4098f9506ae1b72d01e30e580cd923d22f33bfceeb7f4faf707327278  niaautoarm-0.1.1.tar.gz
"
