aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-dnspython/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/py3-dnspython/APKBUILD')
-rw-r--r--main/py3-dnspython/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/main/py3-dnspython/APKBUILD b/main/py3-dnspython/APKBUILD
new file mode 100644
index 0000000000..5b0a6a24d1
--- /dev/null
+++ b/main/py3-dnspython/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py3-dnspython
+_pkgname=dnspython
+pkgver=1.16.0
+pkgrel=3
+pkgdesc="A DNS toolkit for Python3"
+url="http://www.dnspython.org"
+arch="all"
+license="ISC"
+makedepends="py3-setuptools python3-dev cython"
+source="http://www.dnspython.org/kits/$pkgver/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+replaces="py-dnspython" # Backwards compatibility
+provides="py-dnspython=$pkgver-r$pkgrel" # Backwards compatibility
+
+build() {
+ python3 setup.py build --cython-compile
+}
+
+check() {
+ python3 setup.py check --cython-compile
+}
+
+package() {
+ python3 setup.py install --cython-compile --prefix=/usr --root="$pkgdir"
+}
+sha512sums="41ddca2faf696d5d682551f517efd90c007011c1f6d9355d297d71a3fe84222a1e528945343d8c2276ad3957ceaab578f3df7c2c1709418ffcca01ccbb379359 dnspython-1.16.0.tar.gz"