# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer:
pkgname=py3-spotipy
_pkgname=spotipy
pkgver=2.24.0
pkgrel=2
pkgdesc="Light weight Python library for the Spotify Web API"
url="https://github.com/spotipy-dev/spotipy"
arch="noarch"
license="MIT"
depends="py3-requests py3-six py3-urllib3 py3-redis"
makedepends="py3-setuptools py3-gpep517"
options="!check" # requires Spotify API Key
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/spotipy-dev/spotipy/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
9860119f078ff894a9b27bb4d51cd7b469c2cea4981757338d8c3f1c6c8a1c0bbb3b79622820486c07f0b86ce4e26f9329635b51fc976c4cee43122b9a0209ff  py3-spotipy-2.24.0.tar.gz
"
