1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/community/py3-mpv/APKBUILD

42 lines
1 KiB
Text

# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Alex McGrath <amk@amk.ie>
pkgname=py3-mpv
pkgver=1.0.8
pkgrel=0
pkgdesc="Python interface to the mpv media player"
url="https://github.com/jaseg/python-mpv"
arch="noarch"
license="MIT"
depends="mpv-libs"
makedepends="
py3-setuptools
py3-gpep517
py3-installer
py3-wheel
"
checkdepends="pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jaseg/python-mpv/archive/v$pkgver.tar.gz"
options="!check" # tests require unpackaged xvfbwrapper
builddir="$srcdir/python-mpv-$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
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
bc430bc8b9538f1a55d92470935b5d120e188f01f5a36384fe351008d85a1d7e187b9dcd757fc165aa88f04097a3e697c9e9c79aa001bb356a3a9f3945ae1892 py3-mpv-1.0.8.tar.gz
"