1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/community/py3-opytimizer/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

39 lines
1,002 B
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-opytimizer
_pkgorig=opytimizer
pkgver=3.1.2
pkgrel=2
pkgdesc="A Python library consisting of nature-inspired meta-heuristic optimization algorithms"
url="https://github.com/gugarosa/opytimizer"
arch="noarch !s390x" #py3-dill
license="Apache-2.0"
depends="
python3
py3-dill
py3-matplotlib
py3-networkx
py3-numpy
py3-opytimark
py3-tqdm
"
makedepends="py3-setuptools"
checkdepends="py3-pytest xvfb-run"
source="https://github.com/gugarosa/opytimizer/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
build() {
python3 setup.py build
}
check() {
xvfb-run -a python3 -m pytest -k 'not plot'
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
d1f762ae3f6f50d580c254414a4a9986b4062fb5b14199ea1cb99bbdaf7edf22cfcddfe832caf58baae5b5dc1570edb0656bd0fda7ecb506bdabedfb2ae28038 opytimizer-3.1.2.tar.gz
"