summaryrefslogtreecommitdiff
path: root/user/py3-configargparse/APKBUILD
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-21 03:24:34 -0800
committerzlg <zlg@zlg.space>2018-11-21 03:35:30 -0800
commit25d00e637735013a34151566540a1139b4519d2b (patch)
treefe10c7218e991a2d63e2e2956aff8440d5090a62 /user/py3-configargparse/APKBUILD
parent6f84d4079247210afcc8d3408cd32873f62ee139 (diff)
downloadpackages-25d00e637735013a34151566540a1139b4519d2b.tar.gz
packages-25d00e637735013a34151566540a1139b4519d2b.tar.bz2
packages-25d00e637735013a34151566540a1139b4519d2b.tar.xz
packages-25d00e637735013a34151566540a1139b4519d2b.zip
user/py3-configargparse: new package
Diffstat (limited to 'user/py3-configargparse/APKBUILD')
-rw-r--r--user/py3-configargparse/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/py3-configargparse/APKBUILD b/user/py3-configargparse/APKBUILD
new file mode 100644
index 000000000..993fbf7f6
--- /dev/null
+++ b/user/py3-configargparse/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
+# Maintainer: zlg <zlg+adelie@zlg.space>
+pkgname=py3-configargparse
+_pkgname=ConfigArgParse
+pkgver=0.13.0
+pkgrel=0
+pkgdesc="A drop-in replacement for argparse"
+url="https://github.com/bw2/ConfigArgParse"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="python3-dev python3-tests"
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://github.com/bw2/$_pkgname/archive/$pkgver.tar.gz
+ python3.patch"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build || return 1
+}
+
+check() {
+ cd "$builddir"
+ python3 setup.py test
+}
+
+package() {
+ mkdir -p "$pkgdir"
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="797c5edbc51353797204152b5c908ddb4e883a98f247430448d774957fd841286ea1a3cb87db3186e683a65f566cfce0a815e4bd558b9c823d9226d856341ca9 py3-configargparse-0.13.0.tar.gz
+df324cbc12d0d5cf3cf8bfe494e358d366d8a7891183e9a7922d5331f86e30cbe5810b709ad93dfd41f33cd08c1d87371b9aa13c92d7637d4459d83db41be33f python3.patch"