# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer:
pkgname=py3-itunespy
_pkgname=itunespy
pkgver=1.6
pkgrel=5
pkgdesc="Library to fetch data from the iTunes Store API"
url="https://github.com/sleepyfran/itunespy"
arch="noarch"
license="MIT"
depends="py3-requests py3-pycountry"
makedepends="py3-setuptools py3-gpep517"
options="!check" # no test suite
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sleepyfran/itunespy/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="
d91428e23a71bdbc62e6b8126b379aa48f06a365056147cf30eb4fa6132243d35c8a8d6dc536174a53f206bf7bcb4dcebb5a3697fac0fd88cbcb38205202ad81  py3-itunespy-1.6.tar.gz
"
