testing/py3-cdio: build with gpep517

This commit is contained in:
ptrcnull 2024-08-06 14:35:45 +02:00
parent 66d74eaa56
commit 0102e233b8

View File

@ -3,13 +3,13 @@
pkgname=py3-cdio
_pyname=pycdio
pkgver=2.1.1
pkgrel=4
pkgrel=5
pkgdesc="python interface to libcdio"
url="https://www.gnu.org/software/libcdio"
arch="all"
license="GPL-3.0-only"
depends="python3"
makedepends="python3-dev py3-setuptools libcdio-dev swig py3-nose"
makedepends="python3-dev py3-setuptools libcdio-dev swig py3-nose py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz
assertEquals.patch
@ -17,16 +17,22 @@ source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$
builddir="$srcdir/$_pyname-$pkgver"
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 setup.py test
python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m nose
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
4c756b1c2f39332add86e01af129ccb608178306be42c9719c163b6bad0ba4de3916ac477c6866450890e094b14a2689a24e7d19bcf13846330555c2bb1feaa7 pycdio-2.1.1.tar.gz
8e64bbe0df39f42fa026423b113e3d26067d7c8a2169fafbb3e0d8fff1933cfb073ece116b243a39ed6b900ee0dcab5c44b257d9c464ce485f562c33c58beb14 assertEquals.patch