testing/py3-mopidy-tidal: build with gpep517

This commit is contained in:
ptrcnull 2024-08-06 14:04:39 +02:00
parent f9d7c4dced
commit 9ae4cc6f58

View File

@ -2,7 +2,7 @@
pkgname=py3-mopidy-tidal
_pyname=Mopidy-Tidal
pkgver=0.3.2
pkgrel=5
pkgrel=6
pkgdesc="Mopidy extension for Tidal music service integration"
url="https://github.com/tehkillerbee/mopidy-tidal"
arch="noarch"
@ -16,22 +16,27 @@ depends="
py3-typing-extensions
python3
"
makedepends="py3-setuptools py3-wheel"
makedepends="py3-setuptools py3-wheel py3-gpep517"
checkdepends="py3-pytest py3-pytest-mock py3-dateutil"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest tests
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest tests
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="