aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-click/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-click/APKBUILD')
-rw-r--r--community/py3-click/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/py3-click/APKBUILD b/community/py3-click/APKBUILD
new file mode 100644
index 0000000000..137a51e0a6
--- /dev/null
+++ b/community/py3-click/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-click
+pkgver=7.1.1
+pkgrel=0
+pkgdesc="Simple wrapper around optparse for powerful command line utilities"
+url="https://click.palletsprojects.com"
+arch="noarch"
+license="BSD-3-Clause"
+depends="python3"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+source="https://files.pythonhosted.org/packages/source/c/click/click-$pkgver.tar.gz"
+builddir="$srcdir/click-$pkgver"
+
+replaces="py-click" # Backwards compatibility
+provides="py-click=$pkgver-r$pkgrel" # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ PYTHONPATH="$PWD"/build/lib pytest -v tests
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="421450e4a3c9baa562ae9f3af602cefe70dfd7273aaa5ea47c7feb4d38b03e5b28c13d5e63a6fc5e7bfc89c9997a60836e79c51397509970726d2b832ced68e6 click-7.1.1.tar.gz"