aports/community/py3-bayesian-optimization/APKBUILD
2024-07-11 14:47:57 +00:00

37 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-bayesian-optimization
pkgver=1.5.1
pkgrel=0
pkgdesc="A Python implementation of global optimization with gaussian processes"
url="https://github.com/fmfn/BayesianOptimization"
arch="noarch !s390x" #py3-scikit-learn
license="MIT"
depends="python3 py3-colorama py3-numpy py3-scipy py3-scikit-learn"
makedepends="py3-gpep517 py3-poetry-core py3-wheel"
checkdepends="py3-pytest-xdist"
subpackages="$pkgname-pyc"
source="https://github.com/fmfn/BayesianOptimization/archive/v$pkgver/bayesian-optimization-$pkgver.tar.gz"
builddir="$srcdir/BayesianOptimization-$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_notebooks_run.py
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
1337e2b01e10c0dd1560733f10f4fefec814894533e9ab949012c91f53b2a40237dba9902f7030d8919f08aee97c6042d465b892c35c702ff928d82ab060ec3d bayesian-optimization-1.5.1.tar.gz
"