aports/community/py3-ytmusicapi/APKBUILD
2025-04-03 21:04:48 +00:00

30 lines
911 B
Text

# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=py3-ytmusicapi
pkgver=1.10.3
pkgrel=0
pkgdesc="Unofficial API for YouTube Music"
url="https://github.com/sigma67/ytmusicapi"
arch="noarch"
license="MIT"
depends="py3-setuptools py3-requests"
makedepends="py3-setuptools_scm py3-gpep517 py3-installer py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/y/ytmusicapi/ytmusicapi-$pkgver.tar.gz"
builddir="$srcdir/ytmusicapi-$pkgver"
options="!check" # tests require special auth setup
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/ytmusicapi-$pkgver-*.whl
}
sha512sums="
39d56db4e08af7c81925751a818de51432a5a49e6a52d2201cc3bb62c796f933aa0e15bf2cb7b02b1794b95868a6cb1363c465896c4a9fe69bf25318d9dfc993 ytmusicapi-1.10.3.tar.gz
"