mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-11-07 11:52:11 +01:00
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# Contributor: Magnus Sandin <magnus.sandin@gmail.com>
|
|
# Maintainer: Magnus Sandin <magnus.sandin@gmail.com>
|
|
pkgname=py3-pyliblo
|
|
pkgver=0.10.0
|
|
pkgrel=3
|
|
pkgdesc="Python wrapper for the liblo OSC library"
|
|
url="https://das.nasophon.de/pyliblo/"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="
|
|
cython
|
|
liblo-dev
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-doc"
|
|
source="https://das.nasophon.de/download/pyliblo-$pkgver.tar.gz
|
|
py3.11.patch
|
|
fix_cython.patch
|
|
"
|
|
builddir="$srcdir/pyliblo-$pkgver"
|
|
|
|
build() {
|
|
export CYTHON_FORCE_REGEN=1
|
|
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
|
|
# needs net
|
|
.testenv/bin/python3 -m pytest -k 'not testSendReceive' -k 'not testNoPermission'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
d2a3d47f6c52d310104256d33fbd5d652ae6bc8cde32c2d3b2f3f407b8a4aba99028e57cd466804d266f63468a6c792760f28a43dbabcfa3330e0a852ee4d4e3 pyliblo-0.10.0.tar.gz
|
|
8a80b83f16c1defd518b3bc46d559211b205caadaff9b5a22bf99af7670d94c748400457afb4847d3f3e39dd7498f9dc30344feb066e1455ebe2b6ded053ff70 py3.11.patch
|
|
900d0b3cbb04cfc7f56b124650b0c29e3a442ccf50796feb87dcf4d17c4e365de2c26899d78713804410590d62be9412b69d79b0aadababb49da3bff54d6709e fix_cython.patch
|
|
"
|