[arch-commits] Commit in (4 files)

Morten Linderud foxboron at archlinux.org
Mon May 28 10:09:53 UTC 2018


    Date: Monday, May 28, 2018 @ 10:09:53
  Author: foxboron
Revision: 332411

added python-json-rpc to community

Added:
  python-json-rpc/
  python-json-rpc/repos/
  python-json-rpc/trunk/
  python-json-rpc/trunk/PKGBUILD

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Added: python-json-rpc/trunk/PKGBUILD
===================================================================
--- python-json-rpc/trunk/PKGBUILD	                        (rev 0)
+++ python-json-rpc/trunk/PKGBUILD	2018-05-28 10:09:53 UTC (rev 332411)
@@ -0,0 +1,53 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgbase=python-json-rpc
+pkgname=(python-json-rpc python2-json-rpc)
+pkgver=1.11.0
+pkgrel=2
+pkgdesc="JSON-RPC transport realisation"
+arch=('any')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-flask'
+              'python2-nose' 'python2-mock' 'python2-flask')
+url="https://github.com/pavlov99/json-rpc"
+license=('MIT')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pavlov99/json-rpc/archive/$pkgver.tar.gz")
+sha256sums=('20f895405eb9d1bf7c0470e8bb80c72c69d5b0389e0edfa7e20e810cf6a91f0f')
+
+prepare(){
+  cp -r json-rpc-$pkgver{,-py2}
+}
+
+build() {
+  cd  "$srcdir/json-rpc-$pkgver"
+  python setup.py build
+
+  cd  "$srcdir/json-rpc-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd  "$srcdir/json-rpc-$pkgver"
+  python setup.py nosetests
+
+  cd  "$srcdir/json-rpc-$pkgver-py2"
+  python2 setup.py nosetests
+}
+
+package_python-json-rpc() {
+  depends=('python')
+  cd "json-rpc-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-json-rpc() {
+  depends=('python2')
+  cd "json-rpc-$pkgver-py2"
+
+  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list