1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/py3-tidalapi/APKBUILD
ptrcnull f357444b94 testing/py3-tidalapi: upgrade to 0.7.2
- they switched to pyproject
- but there's no tests in the pypi wheel
- but the tests don't work anyway
2023-07-26 06:39:23 +00:00

36 lines
1.1 KiB
Text

# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=py3-tidalapi
pkgver=0.7.2
pkgrel=0
pkgdesc="Unofficial Python API for TIDAL music streaming service"
url="https://pypi.org/project/tidalapi/"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-requests py3-dateutil"
makedepends="py3-gpep517 py3-wheel py3-installer py3-poetry-core"
checkdepends="py3-pytest py3-keyring py3-ffmpeg py3-pillow"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tamland/python-tidal/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/python-tidal-$pkgver"
options="!check" # Visit https://link.tidal.com/... to log in
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="
10d1cc21570489051ad5a0b34a9d2c368f706541cd858995ee5940b0d3dbae06ac8f1a43842dd957e030499da1019f0fe76c59e099fbe04731999569ee797a87 py3-tidalapi-0.7.2.tar.gz
"