me
/
guix
Archived
1
0
Fork 0

gnu: python-pyjwt: Remove dependency on old version of 'pytest-runner'.

* gnu/packages/python-xyz.scm (python-pyjwt)[arguments]: New field.
[native-inputs]: Remove PYTHON-PYTEST-RUNNER.
master
Marius Bakke 2020-04-08 14:33:43 +02:00
parent 76125bc061
commit 155aaca7fe
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 12 additions and 2 deletions

View File

@ -2659,10 +2659,20 @@ memory usage and transliteration quality.")
(find-files "." "\\.pyc$")) (find-files "." "\\.pyc$"))
#t)))) #t))))
(build-system python-build-system) (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"))))))
(native-inputs (native-inputs
`(("python-pytest" ,python-pytest) `(("python-pytest" ,python-pytest)
("python-pytest-cov" ,python-pytest-cov) ("python-pytest-cov" ,python-pytest-cov)))
("python-pytest-runner" ,python-pytest-runner)))
(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