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:
parent
09448c0994
commit
1a9d771f99
1 changed files with 14 additions and 9 deletions
|
@ -1173,20 +1173,25 @@ (define-public python-pytest-xdist
|
||||||
#t))))
|
#t))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f)) ;FIXME: Some tests are failing.
|
'(#:tests? #f ; Lots of tests fail.
|
||||||
;; #:phases
|
#:phases
|
||||||
;; (modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; (delete 'check)
|
(add-after 'unpack 'patch-setup-py
|
||||||
;; (add-after 'install 'check
|
(lambda _
|
||||||
;; (lambda* (#:key inputs outputs #:allow-other-keys)
|
;; Relax pytest requirement.
|
||||||
;; (add-installed-pythonpath inputs outputs)
|
(substitute* "setup.py"
|
||||||
;; (zero? (system* "py.test" "-v")))))
|
(("pytest>=6\\.0\\.0") "pytest"))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "py.test" "-v")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-setuptools-scm" ,python-setuptools-scm)))
|
`(("python-setuptools-scm" ,python-setuptools-scm)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-execnet" ,python-execnet)
|
`(("python-execnet" ,python-execnet)
|
||||||
("python-pytest" ,python-pytest)
|
("python-pytest" ,python-pytest)
|
||||||
("python-py" ,python-py)))
|
("python-py" ,python-py)
|
||||||
|
("python-pytest-forked" ,python-pytest-forked)))
|
||||||
(home-page
|
(home-page
|
||||||
"https://github.com/pytest-dev/pytest-xdist")
|
"https://github.com/pytest-dev/pytest-xdist")
|
||||||
(synopsis
|
(synopsis
|
||||||
|
|
Loading…
Reference in a new issue