mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-discid: build with gpep517
This commit is contained in:
parent
088166b1df
commit
ae2580f1b8
@ -3,26 +3,37 @@
|
||||
pkgname=py3-discid
|
||||
_pyname=discid
|
||||
pkgver=1.2.0
|
||||
pkgrel=5
|
||||
pkgrel=6
|
||||
pkgdesc="python bindings for libdiscid"
|
||||
url="https://python-discid.readthedocs.io/en/latest/"
|
||||
arch="noarch"
|
||||
license="LGPL-3.0-or-later"
|
||||
depends="python3 libdiscid"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
||||
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
|
||||
# discid.disc.DiscError: cannot open device `/dev/cdrom'
|
||||
.testenv/bin/python3 -m pytest \
|
||||
--deselect test_discid.py::TestDisc
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
sha512sums="d004b7e4b5416310c8fb21bb9e686b5e5f5651366fb78785e299dcd17aaa99e7c2e115cc1c5175d8fbf853d3f7b8813555be32bf387d7ce82271b5e57bdff0dd discid-1.2.0.tar.gz"
|
||||
|
||||
sha512sums="
|
||||
d004b7e4b5416310c8fb21bb9e686b5e5f5651366fb78785e299dcd17aaa99e7c2e115cc1c5175d8fbf853d3f7b8813555be32bf387d7ce82271b5e57bdff0dd discid-1.2.0.tar.gz
|
||||
"
|
||||
|
Loading…
Reference in New Issue
Block a user