testing/py3-itunespy: build with gpep517

This commit is contained in:
ptrcnull 2024-08-05 22:44:28 +02:00
parent 8b3c7fc9b2
commit d658d99234

View file

@ -3,24 +3,27 @@
pkgname=py3-itunespy
_pkgname=itunespy
pkgver=1.6
pkgrel=3
pkgrel=4
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"
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() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="