mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-18 04:02:30 +02:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Maintainer: Willow Barraco <contact@willowbarraco.fr>
|
|
pkgname=py3-tidalapi
|
|
pkgver=0.8.4
|
|
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="
|
|
11a3bafb98ee4a3ffac7ff09e3c92d0bbe1f6e301feafb83f334d56f8dc3b4ce61c376c5a17ed90933caffe36ba14ec3f87fc266451828d24da5099f7df73dbb py3-tidalapi-0.8.4.tar.gz
|
|
"
|