1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/community/py3-lap/APKBUILD
Sören Tempel 976ca2d734 community/py3-lap: new aport
Required by a new community/beets version, hence added to community.
2025-05-12 17:07:41 +00:00

36 lines
1 KiB
Text

# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=py3-lap
pkgver=0.5.12
pkgrel=0
pkgdesc="Linear Assignment Problem solver (LAPJV/LAPMOD)"
url="https://github.com/gatagat/lap"
arch="all"
license="BSD-2-Clause"
depends="py3-numpy"
makedepends="py3-gpep517 py3-setuptools py3-wheel cython py3-numpy-dev python3-dev"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/gatagat/lap/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir"/lap-$pkgver
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
cd "$builddir"/lap/tests
for test in test_simple test_arr_loop test_lapjv test_lapmod; do
PYTHONPATH="$(echo $builddir/build/lib.*)" python3 -m "lap.tests.$test"
done
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
a1da5406d081005ea3ee66d2e507009c7710eeb2f4ef8d7d836008f09c2548c31cc04186cd54d5856393d7a587d970045c72e3d1894f16162a13a9506805e36b py3-lap-0.5.12.tar.gz
"