testing/py3-imdbpy: build with gpep517

This commit is contained in:
ptrcnull 2024-08-08 20:15:09 +02:00
parent b33a60ab28
commit 3ee5389dbf

View File

@ -1,24 +1,27 @@
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=py3-imdbpy
pkgver=2021.4.18
pkgrel=4
pkgrel=5
pkgdesc="Python bindings for the Internet Movie Database (IMDb)"
url="https://imdbpy.sourceforge.io/"
arch="noarch"
license="GPL-2.0-or-later"
depends="py3-lxml py3-sqlalchemy"
makedepends="py3-setuptools"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/I/IMDbPY/IMDbPY-$pkgver.tar.gz"
options="!check" # Disable tests for now: https://github.com/alberanid/imdbpy/issues/240
builddir="$srcdir/IMDbPY-$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="