mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 01:44:36 +02:00
47 lines
1.6 KiB
Text
47 lines
1.6 KiB
Text
# 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.4.1
|
|
pkgrel=0
|
|
pkgdesc="A minimalistic framework for numerical association rule mining"
|
|
url="https://github.com/firefly-cpp/NiaARM"
|
|
arch="noarch"
|
|
license="MIT AND Apache-2.0"
|
|
depends="python3 py3-numpy py3-pandas py3-niapy py3-nltk py3-scikit-learn"
|
|
checkdepends="py3-pytest-xdist"
|
|
makedepends="py3-gpep517 py3-poetry-core"
|
|
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() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -n auto \
|
|
--ignore=tests/test_visualization.py \
|
|
--ignore=tests/test_two_key_plot.py \
|
|
--ignore=tests/test_text_mining.py \
|
|
--ignore=tests/test_sankey_diagram.py
|
|
}
|
|
|
|
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 CITATION.cff -t "$pkgdir"/usr/share/doc/$pkgname
|
|
install -Dm644 interest_measures.md -t "$pkgdir"/usr/share/doc/$pkgname
|
|
install -Dm644 NOTICE.md -t "$pkgdir"/usr/share/doc/$pkgname
|
|
install -Dm644 niaarm.1 -t "$pkgdir"/usr/share/man/man1/
|
|
}
|
|
|
|
sha512sums="
|
|
9020cbdb851f3776dc1c06604ac08a71dda21a2fcf37f726156d4a5a26a0901f39b11f1a2ebcbf6fa532c64149207b293edd9d9fa2fc2df60d8ea33e8ed616ae niaarm-0.4.1.tar.gz
|
|
"
|