me
/
guix
Archived
1
0
Fork 0

gnu: python-pyrsistent: Fix build with Pytest 5.

* gnu/packages/python-xyz.scm (python-pyrsistent)[arguments]: New field.
master
Marius Bakke 2020-04-21 13:08:41 +02:00
parent ce784e6c28
commit f9ea3b2427
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 10 additions and 0 deletions

View File

@ -2264,6 +2264,16 @@ from git information.
(base32 (base32
"1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8")))) "1lrsjgblnapfimd0alsi1as5nz2lfqv97131l7d6anbjzq2rjri8"))))
(build-system python-build-system) (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 (native-inputs
`(("python-hypothesis" ,python-hypothesis) `(("python-hypothesis" ,python-hypothesis)
("python-pytest" ,python-pytest) ("python-pytest" ,python-pytest)