mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-19 21:27:37 -05:00
gnu: python-pyrsistent: Fix build with Pytest 5.
* gnu/packages/python-xyz.scm (python-pyrsistent)[arguments]: New field.
This commit is contained in:
parent
ce784e6c28
commit
f9ea3b2427
1 changed files with 10 additions and 0 deletions
|
@ -2264,6 +2264,16 @@ (define-public python-pyrsistent
|
|||
(base32
|
||||
"1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:phases (modify-phases %standard-phases
|
||||
;; The package works fine with newer Pytest and Hypothesis, but
|
||||
;; has pinned older versions to stay compatible with Python 2.
|
||||
(add-before 'check 'loosen-pytest-requirement
|
||||
(lambda _
|
||||
(substitute* "setup.py"
|
||||
(("pytest<5") "pytest")
|
||||
(("hypothesis<5") "hypothesis"))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("python-hypothesis" ,python-hypothesis)
|
||||
("python-pytest" ,python-pytest)
|
||||
|
|
Loading…
Reference in a new issue