[arch-commits] Commit in (5 files)

Morten Linderud foxboron at archlinux.org
Tue Sep 18 21:37:16 UTC 2018


    Date: Tuesday, September 18, 2018 @ 21:37:16
  Author: foxboron
Revision: 383321

addpkg: python-json-rpc 1.11.1-1

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

----------+
 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-09-18 21:37:16 UTC (rev 383321)
@@ -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.1
+pkgrel=1
+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=('23a975c2737595e94c86d0cc6c9506086a44a2dacc1d506059dbda7fe6ce2e95')
+
+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