mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-niaarm
|
|
_pkgorig=niaarm
|
|
pkgver=0.3.1
|
|
pkgrel=1
|
|
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="
|
|
d365e86001cb2d7abef99614a2786fa875b7485b3f40b18ef8c5bcd2f6406465bbac81beaf4081ed3198cb61d771180eff580abcfc5005890b9ac9aa8eab085e niaarm-0.3.1.tar.gz
|
|
"
|