projects/aports·blob master · refs

46 lines · 1.6 KiB

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