aports/testing/py3-mopidy-local/APKBUILD
2025-01-01 22:05:01 +00:00

41 lines
1.1 KiB
Text

maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=py3-mopidy-local
_pyname=${pkgname#py3-}
pkgver=3.3.0
pkgrel=0
pkgdesc="Mopidy extension for playing music from local music archive"
url="https://github.com/mopidy/mopidy-local"
arch="noarch"
license="Apache-2.0"
depends="
mopidy
python3
py3-pykka
py3-uritools
"
makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/mopidy/mopidy-local/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$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
.testenv/bin/python3 -m pytest
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
5e17efe7da24bb405b51d1540cadbb74fa373c5f92e546e4cdf0bd2024c5237dff2a643b3fc866c3c7998157684c466605865b7ba2ac7c0fb9459a8e5744d591 mopidy-local-3.3.0.tar.gz
"