aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-url-normalize/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-url-normalize/APKBUILD')
-rw-r--r--community/py3-url-normalize/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/py3-url-normalize/APKBUILD b/community/py3-url-normalize/APKBUILD
new file mode 100644
index 0000000000..2c0587f3a8
--- /dev/null
+++ b/community/py3-url-normalize/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-url-normalize
+pkgver=1.4.3
+pkgrel=0
+pkgdesc="URL normalization for Python"
+url="https://github.com/niksite/url-normalize"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+source="https://pypi.python.org/packages/source/u/url-normalize/url-normalize-$pkgver.tar.gz"
+# No setup.py in Github package and no tests in PyPi package
+options="!check"
+builddir="$srcdir/url-normalize-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="12916548a9a1994c43dcd8ccfab6b5d68a72924e8c2fe4691fa00d853e3f860f7e45e982ff77a259d6767ce5ab3971656ab92b39c16bc176a9ed0ec2a0a8c302 url-normalize-1.4.3.tar.gz"