aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-scikit-optimize/APKBUILD
blob: 481c842ba5c123e5d20a69be77af4b6ef332eb4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-scikit-optimize
pkgver=0.8.1
pkgrel=0
pkgdesc="Sequential model-based optimization with a 'scipy.optimize' interface"
url="https://scikit-optimize.github.io/"
arch="noarch !mips !mips64 !s390x" # Blocked by py3-joblib
license="BSD-3-Clause"
depends="
	py3-joblib
	py3-matplotlib
	py3-numpy
	py3-pillow
	py3-scikit-learn
	py3-scipy
	python3
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/s/scikit-optimize/scikit-optimize-$pkgver.tar.gz"
case "$CARCH" in
	# Broken tests on armv7 https://github.com/scikit-optimize/scikit-optimize/issues/900
	# Python fatal abort on armhf
	arm*) options="$options !check" ;;
esac
builddir="$srcdir/scikit-optimize-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8ffacb62869810e1812bdbd2f9f3fe83cad2be03cd795ae2e9aa4e1143ed613c3901ae06be85aecd63c1e3e5b4805e88331d2d8848cc9953988fddfbe62a0287  scikit-optimize-0.8.1.tar.gz"