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

* gnu/packages/python-xyz.scm (python-pyrsistent)[arguments]: New field.
This commit is contained in:
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

View file

@ -2264,6 +2264,16 @@ (define-public python-pyrsistent
(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)