[arch-commits] Commit in python-jose/repos (community-any community-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Mar 4 09:49:08 UTC 2017


    Date: Saturday, March 4, 2017 @ 09:49:07
  Author: felixonmars
Revision: 214857

archrelease: copy trunk to community-any

Added:
  python-jose/repos/community-any/
  python-jose/repos/community-any/PKGBUILD
    (from rev 214856, python-jose/trunk/PKGBUILD)

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

Copied: python-jose/repos/community-any/PKGBUILD (from rev 214856, python-jose/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-03-04 09:49:07 UTC (rev 214857)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-jose
+pkgname=('python-jose' 'python2-jose')
+pkgver=1.3.2
+pkgrel=1
+pkgdesc="A JOSE implementation in Python"
+arch=('any')
+license=('MIT')
+url="http://github.com/mpdavis/python-jose"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-crypto' 'python2-crypto' 'python-six'
+             'python2-six' 'python-ecdsa' 'python2-ecdsa' 'python-future' 'python2-future' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/mpdavis/python-jose.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a python-jose{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-jose
+  python setup.py build
+
+  cd "$srcdir"/python-jose-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-jose
+  python setup.py pytest
+
+  cd "$srcdir"/python-jose-py2
+  python2 setup.py pytest
+}
+
+package_python-jose() {
+  depends=('python-crypto' 'python-six' 'python-ecdsa' 'python-future')
+
+  cd python-jose
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-jose() {
+  depends=('python2-crypto' 'python2-six' 'python2-ecdsa' 'python2-future')
+
+  cd python-jose-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


More information about the arch-commits mailing list