aports/testing/py3-pyglet/APKBUILD
2025-02-13 18:47:09 +00:00

41 lines
1.3 KiB
Text

# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-pyglet
pkgver=2.1.0
pkgrel=0
pkgdesc="Cross-platform windowing and multimedia library for Python"
url="https://github.com/pyglet/pyglet/"
# riscv64: llvm: relocation type not implemented yet
# s390x: shaders don't compile
arch="noarch !s390x !riscv64"
license="BSD-3-Clause"
depends="mesa-gl"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest xvfb-run mesa-dri-gallium"
subpackages="$pkgname-pyc"
source="https://github.com/pyglet/pyglet/archive/v$pkgver/pyglet-$pkgver.tar.gz"
builddir="$srcdir/pyglet-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
# interactive: not meant to be run headless
# test_face_from_fontconfig: cannot find italic fonts
xvfb-run -a \
.testenv/bin/python3 -m pytest tests \
--ignore=tests/interactive \
--deselect=tests/integration/font/test_freetype_face.py::test_face_from_fontconfig
}
package() {
gpep517 install-wheel --destdir "$pkgdir" .dist/*.whl
}
sha512sums="
c13ac90600711b134b4770a8cb72e639ed440db79046585139b7ada92f35432b2357204d6d7e95ee457fe921dbce2c384c80a024bb44e7eae2d3ad69543343c8 pyglet-2.1.0.tar.gz
"