[arch-commits] Commit in python-jose/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:17:08 UTC 2019
Date: Saturday, October 26, 2019 @ 04:17:08
Author: felixonmars
Revision: 519965
archrelease: copy trunk to community-staging-any
Added:
python-jose/repos/community-staging-any/
python-jose/repos/community-staging-any/PKGBUILD
(from rev 519963, python-jose/trunk/PKGBUILD)
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: python-jose/repos/community-staging-any/PKGBUILD (from rev 519963, python-jose/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:17:08 UTC (rev 519965)
@@ -0,0 +1,58 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-jose
+pkgname=('python-jose' 'python2-jose')
+pkgver=3.0.1
+pkgrel=2
+pkgdesc="A JOSE implementation in Python"
+arch=('any')
+license=('MIT')
+url="https://github.com/mpdavis/python-jose"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-rsa' 'python2-rsa'
+ 'python-six' 'python2-six' 'python-ecdsa' 'python2-ecdsa' 'python-future'
+ 'python2-future')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-cryptography'
+ 'python2-cryptography' 'python-pycryptodome' 'python2-pycryptodome'
+ 'python-pytest-cov' 'python2-pytest-cov')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mpdavis/python-jose/archive/$pkgver.tar.gz")
+sha512sums=('a39c3aa9acc6bcc0030e4435e499581043a820c54aa1a4b67ae478cf95f96f28755b03fa4453e484932a64865a61613a1ff4afe30249216e8f392638485693d7')
+
+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-rsa' 'python-six' 'python-ecdsa' 'python-future')
+ optdepends=('python-cryptography: one option for better performance'
+ 'python-pycryptodome: one option for better performance')
+
+ 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-rsa' 'python2-six' 'python2-ecdsa' 'python2-future')
+ optdepends=('python2-cryptography: one option for better performance'
+ 'python2-pycryptodome: one option for better performance')
+
+ 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