summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2022-07-20 08:20:35 +0200
committerHartmut Goebel <h.goebel@crazy-compilers.com>2022-08-10 09:39:01 +0200
commit6937cea1996a21321b6cc041c37e4c0381c9b6a0 (patch)
tree2b4b2a8f5fcb35445778ae5f6c1403e37c49be4d /gnu/packages/python-xyz.scm
parent104f9e05754e3453413534bc2c31a60281ebde9f (diff)
downloadguix-patches-6937cea1996a21321b6cc041c37e4c0381c9b6a0.tar
guix-patches-6937cea1996a21321b6cc041c37e4c0381c9b6a0.tar.gz
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.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm23
1 files changed, 6 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6270fee9b9..c430b99600 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3763,34 +3763,23 @@ memory usage and transliteration quality.")
(define-public python-pyjwt
(package
(name "python-pyjwt")
- (version "1.7.1")
+ (version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyJWT" version))
(sha256
(base32
- "15hflax5qkw1v6nssk1r0wkj83jgghskcmn875m3wgvpzdvajncd"))
- (modules '((guix build utils)))
- (snippet
- '(begin
- (for-each delete-file-recursively
- (find-files "." "\\.pyc$"))
- #t))))
+ "1fmbcwfw1463wjzwbcgg3s16rad6kfb1mc5y7jbkp6v9ihh0hafl"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
- (lambda _
- ;; Mimic upstream commit 3a20892442b34c7 to get
- ;; rid of dependency on pytest-runner < 5.0.
- ;; Remove substitution for PyJWT > 1.7.1.
- (substitute* "setup.py"
- ((".*pytest-runner.*")
- ""))
- (invoke "pytest" "-vv"))))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
(native-inputs
- (list python-pytest python-pytest-cov))
+ (list python-cryptography python-pytest))
(home-page "https://github.com/progrium/pyjwt")
(synopsis "JSON Web Token implementation in Python")
(description