mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 23:14:11 +02:00
40 lines
1.3 KiB
Text
40 lines
1.3 KiB
Text
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
|
|
pkgname=py3-niaclass
|
|
_pkgorig=niaclass
|
|
pkgver=0.2.3
|
|
pkgrel=0
|
|
pkgdesc="Framework for solving classification tasks using nature-inspired algorithms"
|
|
url="https://github.com/firefly-cpp/NiaClass"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-numpy py3-pandas py3-niapy py3-scikit-learn"
|
|
checkdepends="py3-pytest-xdist"
|
|
makedepends="py3-poetry-core py3-gpep517"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="https://github.com/firefly-cpp/NiaClass/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
|
|
builddir="$srcdir/NiaClass-$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/niaclass-$pkgver-py3-none-any.whl
|
|
|
|
install -Dm644 CITATION.cff -t "$pkgdir"/usr/share/doc/$pkgname
|
|
install -Dm644 CITATION.md -t "$pkgdir"/usr/share/doc/$pkgname
|
|
}
|
|
|
|
sha512sums="
|
|
c1bcd48b5d6e33059bba2236c96faaac62888d7ac787a679ba10fa33ff26a27b85040eecfd7193f01d96d22cb69e095de399e819cbf72a7554a6d690b10b822a niaclass-0.2.3.tar.gz
|
|
"
|