gnu: python-pyjwt: Update to 2.4.0.

* gnu/packages/python-xyz.scm (python-pyjwt): Update to 2.4.0.
  [source]: Remove snippet.
  [arguments]<phases>{check}: Remove now unused parts, honor '#:tests?'.
  (native-inputs]: Remove python-pytest-cov, add python-cryptography.
This commit is contained in:
Hartmut Goebel 2022-07-20 08:20:35 +02:00
parent 104f9e0575
commit 6937cea199
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF

View file

@ -3763,34 +3763,23 @@ (define-public python-text-unidecode
(define-public python-pyjwt (define-public python-pyjwt
(package (package
(name "python-pyjwt") (name "python-pyjwt")
(version "1.7.1") (version "2.4.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "PyJWT" version)) (uri (pypi-uri "PyJWT" version))
(sha256 (sha256
(base32 (base32
"15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd")) "1fmbcwfw1463wjzwbcgg3s16rad6kfb1mc5y7jbkp6v9ihh0hafl"))))
(modules '((guix build utils)))
(snippet
'(begin
(for-each delete-file-recursively
(find-files "." "\\.pyc$"))
#t))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
(replace 'check (replace 'check
(lambda _ (lambda* (#:key tests? #:allow-other-keys)
;; Mimic upstream commit 3a20892442b34c7 to get (when tests?
;; rid of dependency on pytest-runner < 5.0. (invoke "pytest" "-vv")))))))
;; Remove substitution for PyJWT > 1.7.1.
(substitute* "setup.py"
((".*pytest-runner.*")
""))
(invoke "pytest" "-vv"))))))
(native-inputs (native-inputs
(list python-pytest python-pytest-cov)) (list python-cryptography python-pytest))
(home-page "https://github.com/progrium/pyjwt") (home-page "https://github.com/progrium/pyjwt")
(synopsis "JSON Web Token implementation in Python") (synopsis "JSON Web Token implementation in Python")
(description (description