| 1 | # Contributor: Galen Abell <[email protected]> |
| 2 | # Maintainer: Galen Abell <[email protected]> |
| 3 | pkgname=py3-discid |
| 4 | _pyname=discid |
| 5 | pkgver=1.4.2 |
| 6 | pkgrel=0 |
| 7 | pkgdesc="python bindings for libdiscid" |
| 8 | url="https://python-discid.readthedocs.io/en/latest/" |
| 9 | arch="noarch" |
| 10 | license="LGPL-3.0-or-later" |
| 11 | depends="python3 libdiscid" |
| 12 | makedepends="py3-setuptools py3-gpep517" |
| 13 | checkdepends="py3-pytest" |
| 14 | subpackages="$pkgname-pyc" |
| 15 | source="https://files.pythonhosted.org/packages/source/${_pyname%"${_pyname#?}"}/$_pyname/$_pyname-$pkgver.tar.gz" |
| 16 | builddir="$srcdir/$_pyname-$pkgver" |
| 17 | |
| 18 | build() { |
| 19 | gpep517 build-wheel \ |
| 20 | --wheel-dir .dist \ |
| 21 | --output-fd 3 3>&1 >&2 |
| 22 | } |
| 23 | |
| 24 | check() { |
| 25 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 26 | .testenv/bin/python3 -m installer .dist/*.whl |
| 27 | .testenv/bin/python3 -m pytest |
| 28 | } |
| 29 | |
| 30 | package() { |
| 31 | python3 -m installer -d "$pkgdir" .dist/*.whl |
| 32 | } |
| 33 | |
| 34 | sha512sums=" |
| 35 | 0579fdf79e7e77322851ce23f0b3676276224ecb65a329dd4c0e6d858bf7c0ac18c58a2f853a115069aa0bb271686fd898937ebb7df0fe6c820c53a78d20fea7 discid-1.4.2.tar.gz |
| 36 | " |