aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-purl/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-purl/APKBUILD')
-rw-r--r--community/py3-purl/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/py3-purl/APKBUILD b/community/py3-purl/APKBUILD
new file mode 100644
index 0000000000..1c2f963606
--- /dev/null
+++ b/community/py3-purl/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py3-purl
+_pkgname=purl
+pkgver=1.5
+pkgrel=3
+pkgdesc="An immutable Python3 URL class for easy URL-building and manipulation"
+url="https://github.com/codeinthehole/purl"
+arch="noarch"
+license="MIT"
+depends="py3-six"
+# Tests are not included in the tarball
+options="!check"
+depends="python3"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+replaces="py-purl" # Backwards compatibility
+provides="py-purl=$pkgver-r$pkgrel" # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="e7ef3dbe51117c2807a5cd472967d90c9f16fc1090f2edcaf3c4fe0bbc95b8ef8d612d5ca98401caf5a94c5b0335949ac0ac490bc694e571ff516b7bf53fae32 purl-1.5.tar.gz"