aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-jsonrpclib/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-jsonrpclib/APKBUILD')
-rw-r--r--community/py3-jsonrpclib/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/community/py3-jsonrpclib/APKBUILD b/community/py3-jsonrpclib/APKBUILD
new file mode 100644
index 0000000000..218a7c11ab
--- /dev/null
+++ b/community/py3-jsonrpclib/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py3-jsonrpclib
+_pkgname=jsonrpclib
+pkgver=0.4.0
+pkgrel=2
+pkgdesc="A Python JSON-RPC over HTTP that mirrors xmlrpclib syntax"
+url="https://github.com/tcalmant/jsonrpclib"
+arch="noarch"
+license="Apache-2.0"
+depends="python3"
+makedepends="py3-setuptools"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/tcalmant/jsonrpclib/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+replaces=py-jsonrpclib # Backwards compatibility
+provides=py-jsonrpclib=$pkgver-r$pkgrel # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py check
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="357743e34447cd6dbe330c5adfa5541134a0ff8d82549ec47ed741ddf54a7aabb8cd417c501cb9ab814ce2cb90e1c2d4d4f21daac3b379f38be03c38a7ed198b jsonrpclib-0.4.0.tar.gz"