2023-09-07 19:35:24 +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.4.3
pkgrel=1
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-setuptools 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
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
9869a1b868a4d7b7105b9e5e09f79544b4ced6f17bc2bcf277d54f0a011bcd39ddaad31853e9f26db90e977ae4254299d5a5061fd683aeb8e4c27b063c2b80a8 bayesian-optimization-1.4.3.tar.gz
"