[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: gnu: python-pyrsistent: Fix build with Pytest 5.
From: |
guix-commits |
Subject: |
02/04: gnu: python-pyrsistent: Fix build with Pytest 5. |
Date: |
Tue, 21 Apr 2020 18:09:30 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit f9ea3b242721fd071d033b8aa3fb36caaf3f764c
Author: Marius Bakke <address@hidden>
AuthorDate: Tue Apr 21 13:08:41 2020 +0200
gnu: python-pyrsistent: Fix build with Pytest 5.
* gnu/packages/python-xyz.scm (python-pyrsistent)[arguments]: New field.
---
gnu/packages/python-xyz.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0636b2b..c5e9c8e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2264,6 +2264,16 @@ from git information.
(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)