aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-argh/APKBUILD
blob: 4a657dc01a10edba261f70316df6a92fdf4cd025 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-argh
_pkgname=argh
pkgver=0.26.2
pkgrel=4
pkgdesc="Python3 argparse wrapper"
options="!check" # Requires unpackaged iocapture
url="https://github.com/neithere/argh"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-argh" # Backwards compatibility
provides="py-argh=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="90382900d5cec9629dacb4459a2c9491d1425b66fa3f90d7cbf511dec846a99dbb9424f3e08f0c006da48fbf9c067078705be70b314700541fd800630e4b1707  argh-0.26.2.tar.gz"