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.
This commit is contained in:
Lars-Dominik Braun 2021-01-27 12:45:05 -05:00 committed by Maxim Cournoyer
parent 09448c0994
commit 1a9d771f99
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1173,20 +1173,25 @@ (define-public python-pytest-xdist
#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