1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/py3-opytimark/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

35 lines
1,013 B
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-opytimark
_pkgorig=opytimark
pkgver=1.0.8
pkgrel=1
pkgdesc="Opytimark is a Python library consisting of optimization benchmarking functions"
url="https://github.com/gugarosa/opytimark"
arch="noarch"
license="Apache-2.0"
depends="
python3
py3-numpy
"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/gugarosa/opytimark/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
build() {
python3 setup.py build
}
# several tests are failing -- will examine them later
check() {
python3 -m pytest -k 'not test_year and not test_decorator and not test_loader and not cec_benchmark'
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
e5bf9e79631a40a1189af4a1104f4ae970560da2bd915506217ea704fd1786a56a86acd24b67ab5ba463948bc4171128e233d0af6045cbceb43a93b1a91068ea opytimark-1.0.8.tar.gz
"