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

Felix Yan felixonmars at archlinux.org
Thu Jul 30 20:28:19 UTC 2020


    Date: Thursday, July 30, 2020 @ 20:28:18
  Author: felixonmars
Revision: 665979

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-30 20:28:03 UTC (rev 665978)
+++ PKGBUILD	2020-07-30 20:28:18 UTC (rev 665979)
@@ -1,32 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-jose
-pkgver=3.1.0
-pkgrel=1
-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')
-checkdepends=('python-pytest-runner' 'python-cryptography' 'python-pycryptodome' 'python-pytest-cov')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/mpdavis/python-jose/archive/$pkgver.tar.gz")
-sha512sums=('c4a04bed8fc17d65cb8fc9b2cf37996edb50fa0dcdc2dedd76a97c784f8af34a9c86748ea2f9ea348955ce780035fbe3a756abc8e1eb5e9b77ad57d411622c6b')
-
-build() {
-  cd python-jose-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd python-jose-$pkgver
-  python setup.py pytest
-}
-
-package() {
-  cd python-jose-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-jose/repos/community-any/PKGBUILD (from rev 665978, python-jose/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-30 20:28:18 UTC (rev 665979)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jose
+pkgver=3.2.0
+pkgrel=1
+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')
+checkdepends=('python-pytest-runner' 'python-cryptography' 'python-pycryptodome' 'python-pytest-cov')
+source=("https://github.com/mpdavis/python-jose/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('f81e0284ef2df05a5b2dfc5448f3cce0c8988c4ba5d40f935666ee1693a964db3db62609a38192e317bab6b3945fc5c3122b59f373dbc308363d123ea9752efa')
+
+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