diff options
Diffstat (limited to 'community/py3-niaaml/APKBUILD')
-rw-r--r-- | community/py3-niaaml/APKBUILD | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/community/py3-niaaml/APKBUILD b/community/py3-niaaml/APKBUILD index 3d1d11f58cd..49e4171a357 100644 --- a/community/py3-niaaml/APKBUILD +++ b/community/py3-niaaml/APKBUILD @@ -2,32 +2,40 @@ # Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu> pkgname=py3-niaaml _pkgorig=NiaAML -pkgver=1.1.9 -pkgrel=0 -pkgdesc="Python automated machine learning framework." -url="https://github.com/lukapecnik/NiaAML" -arch="noarch !s390x !riscv64" # py3-scikit-learn, py3-niapy +pkgver=1.2.0 +pkgrel=2 +pkgdesc="Python automated machine learning framework" +url="https://github.com/firefly-cpp/NiaAML" +arch="noarch" license="MIT" depends="python3 py3-numpy py3-pandas py3-niapy py3-scikit-learn" -checkdepends="python3-dev py3-pytest" -makedepends="py3-setuptools poetry py3-platformdirs py3-threadpoolctl py3-installer" -source="https://github.com/lukapecnik/NiaAML/archive/$pkgver/$_pkgorig-$pkgver.tar.gz" -builddir="$srcdir/NiaAML-$pkgver" +checkdepends="py3-pytest-xdist" +makedepends="py3-poetry-core py3-gpep517" +subpackages="$pkgname-doc $pkgname-pyc" +source="https://github.com/firefly-cpp/NiaAML/archive/$pkgver/$_pkgorig-$pkgver.tar.gz" +builddir="$srcdir/$_pkgorig-$pkgver" build() { - GIT_DIR="$builddir" poetry build -f wheel + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 } check() { - python3 -m pytest + 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() { - mv dist/NiaAML-$pkgver-py3-none-any.whl dist/niaaml-$pkgver-py3-none-any.whl python3 -m installer -d "$pkgdir" \ - dist/niaaml-$pkgver-py3-none-any.whl + .dist/niaaml-$pkgver-py3-none-any.whl + + install -Dm644 docs/paper/10.21105.joss.02949.pdf -t "$pkgdir"/usr/share/doc/$pkgname + install -Dm644 CITATION.md -t "$pkgdir"/usr/share/doc/$pkgname + install -Dm644 COMPONENTS.md -t "$pkgdir"/usr/share/doc/$pkgname } sha512sums=" -cad710dc0a204b8730aace8800bfb62a80898fecb569d5cb9b806c169f59b56f9c064fc654c95b1b9c45effd86073437994f8e7e5c8548b851ae3be95fa2854f NiaAML-1.1.9.tar.gz +277550856057c5f61fefb7618c9cde9335062f2ee91f69de8028b20284a4c771886363f273f6fb1f6ea619faef6f97bbb36413ee2ed0cf327fc66f46a394be2c NiaAML-1.2.0.tar.gz " |