Date: Saturday, September 22, 2018 @ 09:19:18
  Author: felixonmars
Revision: 384001

archrelease: copy trunk to community-testing-any

Added:
  python-jsonpickle/repos/community-testing-any/
  python-jsonpickle/repos/community-testing-any/PKGBUILD
    (from rev 383999, python-jsonpickle/trunk/PKGBUILD)

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

Copied: python-jsonpickle/repos/community-testing-any/PKGBUILD (from rev 
383999, python-jsonpickle/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2018-09-22 09:19:18 UTC (rev 384001)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonm...@archlinux.org>
+
+pkgbase=python-jsonpickle
+pkgname=(python-jsonpickle python2-jsonpickle)
+pkgver=1.0
+pkgrel=1
+arch=('any')
+pkgdesc="Python library for serializing any arbitrary object graph into JSON"
+url="http://jsonpickle.github.io/";
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose-show-skipped' 'python2-nose-show-skipped' 
'python-numpy' 'python2-numpy'
+              'python-feedparser' 'python2-feedparser' 'python-coverage' 
'python2-coverage' 'python2-enum34'
+              'python-simplejson' 'python2-simplejson' 'python-pymongo' 
'python2-pymongo' 'python-ujson'
+              'python2-ujson')
+license=('BSD')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jsonpickle/jsonpickle/archive/v$pkgver.tar.gz";)
+sha512sums=('177bcf1a9ce97c0d509f42dab3187744c3bf0376fe0495eb19807bc6b3b7c23a57de6f3fc2144bfe201c0edd00ee8895b18d941ec833539bfc6dc867ae4fead1')
+
+prepare() {
+  cp -a jsonpickle-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/jsonpickle-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/jsonpickle-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/jsonpickle-$pkgver
+  nosetests3 --show-skipped
+
+  cd "$srcdir"/jsonpickle-$pkgver-py2
+  nosetests2 --show-skipped
+}
+
+package_python-jsonpickle() {
+  depends=('python')
+
+  cd jsonpickle-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+package_python2-jsonpickle() {
+  depends=('python2')
+
+  cd jsonpickle-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}

Reply via email to