[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Tue Sep 22 03:17:31 UTC 2015


    Date: Tuesday, September 22, 2015 @ 05:17:31
  Author: fyan
Revision: 141429

addpkg: python-pyjwt 1.4.0-1

Added:
  python-pyjwt/
  python-pyjwt/repos/
  python-pyjwt/trunk/
  python-pyjwt/trunk/PKGBUILD

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

Added: python-pyjwt/trunk/PKGBUILD
===================================================================
--- python-pyjwt/trunk/PKGBUILD	                        (rev 0)
+++ python-pyjwt/trunk/PKGBUILD	2015-09-22 03:17:31 UTC (rev 141429)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pyjwt
+pkgname=('python-pyjwt' 'python2-pyjwt')
+pkgver=1.4.0
+pkgrel=1
+pkgdesc='JSON Web Token implementation in Python'
+arch=('any')
+url='http://github.com/jpadilla/pyjwt'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov' 'python2-pytest-cov')
+source=("git+https://github.com/jpadilla/pyjwt.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a pyjwt{,-py2}
+}
+
+build() {
+  cd "$srcdir/pyjwt"
+  python setup.py build
+
+  cd "$srcdir/pyjwt-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/pyjwt"
+  python setup.py ptr
+
+  cd "$srcdir/pyjwt-py2"
+  python2 setup.py ptr || warning "Tests failed"
+}
+
+package_python-pyjwt() {
+  depends=('python-setuptools')
+
+  cd "$srcdir/pyjwt"
+  python3 setup.py install --root="$pkgdir" -O1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pyjwt() {
+  depends=('python2-setuptools')
+
+  cd "$srcdir/pyjwt-py2"
+  python2 setup.py install --root="$pkgdir" -O1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  mv "$pkgdir/usr/bin/jwt"{,2}
+}
+


Property changes on: python-pyjwt/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list