From 94175cee7f0db4ffd5cf4dbdcc7773c1eb329610 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 21 Jul 2021 17:07:14 +0200 Subject: [PATCH] py3-click: import from community --- sr.ht/py3-click/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sr.ht/py3-click/APKBUILD diff --git a/sr.ht/py3-click/APKBUILD b/sr.ht/py3-click/APKBUILD new file mode 100644 index 0000000..d88e310 --- /dev/null +++ b/sr.ht/py3-click/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +pkgname=py3-click +pkgver=8.0.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=" +6a6d66c68dae4cfcfdab5d77dab4ab280b18f8e9ec326b4860012253d8f6b4fa57a5a3794ddebd228da85f893b0c6a737d8be3ad361d31098ef0a2ad684d6d0a click-8.0.1.tar.gz +" -- 2.45.2