[arch-commits] Commit in python-jose/repos (2 files)

Felix Yan felixonmars at archlinux.org
Thu May 10 15:33:42 UTC 2018


    Date: Thursday, May 10, 2018 @ 15:33:41
  Author: felixonmars
Revision: 320411

archrelease: copy trunk to community-testing-any

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

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

Copied: python-jose/repos/community-testing-any/PKGBUILD (from rev 320410, python-jose/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-05-10 15:33:41 UTC (rev 320411)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-jose
+pkgname=('python-jose' 'python2-jose')
+pkgver=2.0.2
+pkgrel=1
+pkgdesc="A JOSE implementation in Python"
+arch=('any')
+license=('MIT')
+url="https://github.com/mpdavis/python-jose"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pycryptodome' 'python2-pycryptodome'
+             'python-six' 'python2-six' 'python-ecdsa' 'python2-ecdsa' 'python-future'
+             'python2-future')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-cryptography'
+              'python2-cryptography')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mpdavis/python-jose/archive/$pkgver.tar.gz")
+sha512sums=('b81114eb8d44cb8427607ae6801d18eabc4d37791474b0d22f8d3ce19430588e2bb7e2fa7026098f7b04eee1c71963615a47d65d7007cf85f44126cd308fafde')
+
+prepare() {
+  cp -a python-jose-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/python-jose-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/python-jose-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/python-jose-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/python-jose-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-jose() {
+  depends=('python-pycryptodome' 'python-six' 'python-ecdsa' 'python-future')
+
+  cd python-jose-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-jose() {
+  depends=('python2-pycryptodome' 'python2-six' 'python2-ecdsa' 'python2-future')
+
+  cd python-jose-$pkgver-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