# Maintainer: Willow Barraco 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 "