projects/aports·blob master · refs

36 lines · 1.0 KiB

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