[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/131: gnu: python-pytest-xdist: Add missing input, relax pytest requir
From: |
guix-commits |
Subject: |
07/131: gnu: python-pytest-xdist: Add missing input, relax pytest requirement. |
Date: |
Fri, 29 Jan 2021 09:21:43 -0500 (EST) |
apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.
commit 9525762fadf38bde303e35b9317e06f80832c17b
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Wed Jan 27 12:45:05 2021 -0500
gnu: python-pytest-xdist: Add missing input, relax pytest requirement.
* gnu/packages/check.scm: (python-pytest-xdist)
[arguments]: Relax pytest version requirements.
[propagated-inputs]: Add python-pytest-forked.
---
gnu/packages/check.scm | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 41da093..1749531 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1173,20 +1173,25 @@ same arguments.")
#t))))
(build-system python-build-system)
(arguments
- '(#:tests? #f)) ;FIXME: Some tests are failing.
- ;; #:phases
- ;; (modify-phases %standard-phases
- ;; (delete 'check)
- ;; (add-after 'install 'check
- ;; (lambda* (#:key inputs outputs #:allow-other-keys)
- ;; (add-installed-pythonpath inputs outputs)
- ;; (zero? (system* "py.test" "-v")))))
+ '(#:tests? #f ; Lots of tests fail.
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-setup-py
+ (lambda _
+ ;; Relax pytest requirement.
+ (substitute* "setup.py"
+ (("pytest>=6\\.0\\.0") "pytest"))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "py.test" "-v")))))))
(native-inputs
`(("python-setuptools-scm" ,python-setuptools-scm)))
(propagated-inputs
`(("python-execnet" ,python-execnet)
("python-pytest" ,python-pytest)
- ("python-py" ,python-py)))
+ ("python-py" ,python-py)
+ ("python-pytest-forked" ,python-pytest-forked)))
(home-page
"https://github.com/pytest-dev/pytest-xdist")
(synopsis
- 05/131: build/python: Adjust wrap phase to use the new GUIX_PYTHONPATH., (continued)
- 05/131: build/python: Adjust wrap phase to use the new GUIX_PYTHONPATH., guix-commits, 2021/01/29
- 06/131: build/python: Add a sanity check phase., guix-commits, 2021/01/29
- 08/131: gnu: python-fixtures-bootstrap: Do not sanity check., guix-commits, 2021/01/29
- 10/131: gnu: python-pyfakefs: Disable unreliable test, guix-commits, 2021/01/29
- 09/131: gnu: python-pytest-pep8: Fix package., guix-commits, 2021/01/29
- 11/131: gnu: python-slugify: Add missing input., guix-commits, 2021/01/29
- 12/131: gnu: python-websockets: Fix Python package name., guix-commits, 2021/01/29
- 14/131: gnu: python-traitlets: Add missing input., guix-commits, 2021/01/29
- 15/131: gnu: python-idna-ssl: Add missing input., guix-commits, 2021/01/29
- 17/131: gnu: python-automat: Remove broken console script., guix-commits, 2021/01/29
- 07/131: gnu: python-pytest-xdist: Add missing input, relax pytest requirement.,
guix-commits <=
- 16/131: gnu: python-twisted: Remove broken console scripts., guix-commits, 2021/01/29
- 22/131: gnu: solaar: Do not read PYTHONPATH from environment., guix-commits, 2021/01/29
- 21/131: gnu: python2-virtualenv: Fix build., guix-commits, 2021/01/29
- 25/131: gnu: python-pysam: Adjust following Python build system changes., guix-commits, 2021/01/29
- 27/131: gnu: python-screed: Adjust following Python build system changes., guix-commits, 2021/01/29
- 30/131: gnu: python-xmlschema: Do not set PYTHONPATH., guix-commits, 2021/01/29
- 13/131: gnu: python-black: Remove blackd., guix-commits, 2021/01/29
- 19/131: gnu: python-traceback2: Add missing dependency., guix-commits, 2021/01/29
- 23/131: gnu: intel-xed: Adjust build phase., guix-commits, 2021/01/29
- 18/131: gnu: python-packaging-bootstrap: Remove dependency., guix-commits, 2021/01/29