# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-niaarm _pkgorig=niaarm pkgver=0.3.2 pkgrel=0 pkgdesc="A minimalistic framework for numerical association rule mining" url="https://github.com/firefly-cpp/NiaARM" arch="noarch !riscv64" # py3-niapy license="MIT" depends="python3 py3-numpy py3-pandas py3-niapy py3-nltk" checkdepends="python3-dev py3-pytest" makedepends="py3-poetry-core py3-gpep517 py3-platformdirs py3-threadpoolctl py3-installer" subpackages="$pkgname-doc $pkgname-pyc" source="https://github.com/firefly-cpp/NiaARM/archive/$pkgver/$_pkgorig-$pkgver.tar.gz" builddir="$srcdir/NiaARM-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { # minor assertion errors on x86 python3 -m pytest -k 'not text_mining' } package() { python3 -m installer -d "$pkgdir" \ .dist/niaarm-$pkgver-py3-none-any.whl install -Dm644 paper/10.21105.joss.04448.pdf -t "$pkgdir"/usr/share/doc/$pkgname install -Dm644 niaarm.1 -t "$pkgdir"/usr/share/man/man1/ } sha512sums=" 4affeb77bc37befaec14a3cff08b32bd38a5b80c3a38d95870a6750ceaec11dc3a13f6dcec1adb0d41e40b14731429b49cb488e8be114aa3e71c5eb461f8fa42 niaarm-0.3.2.tar.gz "