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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 16:03:59 UTC 2021


    Date: Wednesday, December 1, 2021 @ 16:03:58
  Author: foutrelis
Revision: 1060585

archrelease: copy trunk to community-staging-any

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

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

Copied: python-jose/repos/community-staging-any/PKGBUILD (from rev 1060584, python-jose/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 16:03:58 UTC (rev 1060585)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jose
+pkgver=3.3.0
+pkgrel=2
+pkgdesc="A JOSE implementation in Python"
+arch=('any')
+license=('MIT')
+url="https://github.com/mpdavis/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')
+makedepends=('python-setuptools' 'python-rsa' 'python-six' 'python-ecdsa' 'python-future' 'python-pytest-runner')
+checkdepends=('python-cryptography' 'python-pycryptodome' 'python-pytest-cov')
+source=("https://github.com/mpdavis/python-jose/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('de7147cc6e12406d6e459c32829acae46395acba727c53e65bc05f4794ee3050eecd355e3ae2e87f4ebdbd871f53822eea08a10f25d7ca6088fc6128dc7d9637')
+
+prepare() {
+  cd python-jose-$pkgver
+  sed -i 's/<0.15//' setup.py
+}
+
+build() {
+  cd python-jose-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd python-jose-$pkgver
+  # https://github.com/mpdavis/python-jose/issues/176
+  python setup.py pytest --addopts "--deselect tests/algorithms/test_EC.py::TestECAlgorithm::test_key_too_short"
+}
+
+package() {
+  cd python-jose-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list