1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-sklearn-nature-inspired-algorithms/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

45 lines
1.5 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-sklearn-nature-inspired-algorithms
_pkgorig=Sklearn-Nature-Inspired-Algorithms
pkgver=0.11.0
pkgrel=0
pkgdesc="Nature-inspired algorithms for hyper-parameter tuning of Scikit-Learn models"
url="https://github.com/timzatko/Sklearn-Nature-Inspired-Algorithms"
arch="noarch !riscv64 !s390x !armv7" # py3-matplotlib, py3-scikit-learn, assertion errors
license="MIT"
depends="
py3-matplotlib
py3-niapy
py3-numpy
py3-pandas
py3-scikit-learn
py3-seaborn
python3
"
makedepends="py3-poetry-core py3-gpep517 py3-platformdirs py3-threadpoolctl py3-installer"
checkdepends="py3-pytest"
source="https://github.com/timzatko/Sklearn-Nature-Inspired-Algorithms/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz
poetry-core.patch
"
builddir="$srcdir/Sklearn-Nature-Inspired-Algorithms-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m unittest tests
}
package() {
python3 -m installer -d "$pkgdir" \
dist/sklearn_nature_inspired_algorithms-$pkgver-py3-none-any.whl
}
sha512sums="
0bc20003d6ce4ce1cd0edd9e4ad9a15199df4b2b84e4a81808520c50e83f3c1720fe5fc6c0847a4d28dcad9f21a307e0be976915cc4f37ade34f3f0f962c0ea4 Sklearn-Nature-Inspired-Algorithms-0.11.0.tar.gz
c65bcad8462a205d246c566a4d4587a4e03cbdb908c25010ccfce2bb4bf5fe5cf95e7adf59865db95aa182b0a24023075f66a118cfa2ef9e05e1c7e427837ee3 poetry-core.patch
"