aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-configargparse/APKBUILD
blob: e1bba20cc66b28346ec34d7b7fdee15d70e7d9c7 (plain) (blame)
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
34
35
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-configargparse
_pkgname=ConfigArgParse
pkgver=1.2.3
pkgrel=0
pkgdesc="A drop-in replacement for argparse"
url="https://github.com/bw2/ConfigArgParse"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-yaml"
source="$pkgname-$pkgver.tar.gz::https://github.com/bw2/$_pkgname/archive/$pkgver.tar.gz
	skip-failing-tests.patch"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-configargparse" # Backwards compatibility
provides="py-configargparse=$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="bfa8f9ca8ab5c6d4cdf2a7e7c577c99fafdf7f743c81057bebbb6045c45de2cdbf5d738f7765e5dcac5a45baa92e2a8bc7ad3879776b9cf4862e3da94e78c4cc  py3-configargparse-1.2.3.tar.gz
32171e9ed37e0662bdb8cd95f9a3ec25fd1fe1e9f68047ecc1da4f20278fe1bc56707a4d21654b75421ecb13f2307817b7116fdb6fc8d44df59c993027511d83  skip-failing-tests.patch"