summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Aranguren2019-09-12 09:29:49 +1000
committerLuis Aranguren2019-09-12 09:29:49 +1000
commit3667d8ec001d40e6d048dc13b1a38c5b0bebd6b7 (patch)
tree45d7c5d243f22887df0a3b87f9eb7e5c842e5504
downloadaur-3667d8ec001d40e6d048dc13b1a38c5b0bebd6b7.tar.gz
4.0.5
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD32
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..970dec895cb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = python-jsonrpcserver
+ pkgdesc = Process JSON-RPC requests in Python.
+ pkgver = 4.0.5
+ pkgrel = 1
+ url = https://github.com/bcb/jsonrpcserver
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python
+ depends = python-apply_defaults
+ depends = python-jsonschema
+ options = !emptydirs
+ source = python-jsonrpcserver-4.0.5.tar.gz::https://files.pythonhosted.org/packages/source/j/jsonrpcserver/jsonrpcserver-4.0.5.tar.gz
+ sha256sums = 240c517f49b0fdd3bfa428c9a7cc581126a0c43eca60d29762da124017d9d9f4
+
+pkgname = python-jsonrpcserver
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2fe17cd8081
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
+
+pkgname=python-jsonrpcserver
+_name=jsonrpcserver
+pkgver=4.0.5
+pkgrel=1
+pkgdesc="Process JSON-RPC requests in Python."
+arch=('any')
+depends=('python' 'python-apply_defaults' 'python-jsonschema')
+makedepends=('python-setuptools')
+url="https://github.com/bcb/jsonrpcserver"
+license=('MIT')
+options=('!emptydirs')
+source=($pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('240c517f49b0fdd3bfa428c9a7cc581126a0c43eca60d29762da124017d9d9f4')
+
+build() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py build
+}
+
+check(){
+ cd "$srcdir/$_name-$pkgver"
+
+ # For nosetests
+ nosetests
+}
+
+package() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}