[arch-commits] Commit in python-jose/trunk (PKGBUILD)

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


    Date: Thursday, July 30, 2020 @ 20:28:03
  Author: felixonmars
Revision: 665978

upgpkg: python-jose 3.2.0-1

Modified:
  python-jose/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-30 20:26:14 UTC (rev 665977)
+++ PKGBUILD	2020-07-30 20:28:03 UTC (rev 665978)
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgname=python-jose
-pkgver=3.1.0
+pkgver=3.2.0
 pkgrel=1
 pkgdesc="A JOSE implementation in Python"
 arch=('any')
@@ -12,9 +12,14 @@
             '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')
+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
@@ -22,7 +27,8 @@
 
 check() {
   cd python-jose-$pkgver
-  python setup.py pytest
+  # 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() {


More information about the arch-commits mailing list