| 1 | # Contributor: Fabian Affolter <[email protected]> |
| 2 | # Maintainer: Fabian Affolter <[email protected]> |
| 3 | pkgname=py3-argh |
| 4 | pkgver=0.31.3 |
| 5 | pkgrel=2 |
| 6 | pkgdesc="Python3 argparse wrapper" |
| 7 | url="https://github.com/neithere/argh" |
| 8 | arch="noarch" |
| 9 | license="LGPL-3.0-or-later" |
| 10 | depends="python3" |
| 11 | makedepends=" |
| 12 | py3-gpep517 |
| 13 | py3-flit-core |
| 14 | " |
| 15 | checkdepends="py3-mock py3-pytest" |
| 16 | subpackages="$pkgname-pyc" |
| 17 | source="https://github.com/neithere/argh/archive/v$pkgver/py3-argh-$pkgver.tar.gz |
| 18 | 0001-chore-drop-support-for-Python-3.8.patch |
| 19 | 0002-fix-test-tests-were-broken-under-Python-3.14.0b2-fix.patch" |
| 20 | builddir="$srcdir/argh-$pkgver" |
| 21 | |
| 22 | replaces="py-argh" # Backwards compatibility |
| 23 | provides="py-argh=$pkgver-r$pkgrel" # Backwards compatibility |
| 24 | |
| 25 | build() { |
| 26 | gpep517 build-wheel \ |
| 27 | --wheel-dir .dist \ |
| 28 | --output-fd 3 3>&1 >&2 |
| 29 | } |
| 30 | |
| 31 | check() { |
| 32 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 33 | .testenv/bin/python3 -m installer .dist/*.whl |
| 34 | .testenv/bin/python3 -m pytest |
| 35 | } |
| 36 | |
| 37 | package() { |
| 38 | python3 -m installer -d "$pkgdir" \ |
| 39 | .dist/*.whl |
| 40 | } |
| 41 | |
| 42 | sha512sums=" |
| 43 | ef24f470a5d4154ea99c4acb6dd07c622e098ca3241eb1173a11c1b48cf33b301aeaf8762524d2a5388306ac4871c246377c1763b031d55c8f1f7e8c729808c7 py3-argh-0.31.3.tar.gz |
| 44 | 86f5143d381a21eaa83b9e30d7a99e1a64189ab8477cf6f226f50f6b80826447c25b33b3625b5f3ad45103d88f6fb557e76510622c94498c0a492980d1c375a0 0001-chore-drop-support-for-Python-3.8.patch |
| 45 | 2a94ee221e6503f160de33d74c3ae398e0031677e487bdef87abc07f9ac9decfe45a10dc0f8df1b9e3b73b6a145126ef8765658ca35e7acc52f233228d981d04 0002-fix-test-tests-were-broken-under-Python-3.14.0b2-fix.patch |
| 46 | " |