gnu: python-pytest-xdist: Fix by downgrading to 1.34.0, run test suite.
Commit ed72e55831
updated the package to 2.1.0, but this version doesn't work
with Pytest 5, the version currently used in Guix. Downgrade to the last
version that is compatible with Pytest 5.
* gnu/packages/check.scm (python-pytest-xdist): Downgrade to 1.34.0, with a
comment explaining why. Strip trailing #t.
[source]: Remove origin modules and snippet field, no longer necessary.
[phases]{check}: Override to run the test suite.
[propagated-inputs]: Remove python-py and add python-pytest-forked.
This commit is contained in:
parent
48461816e4
commit
9482c5ad03
1 changed files with 13 additions and 19 deletions
|
@ -1310,38 +1310,32 @@ (define-public python2-pytest-mock
|
||||||
(define-public python-pytest-xdist
|
(define-public python-pytest-xdist
|
||||||
(package
|
(package
|
||||||
(name "python-pytest-xdist")
|
(name "python-pytest-xdist")
|
||||||
(version "2.1.0")
|
;; There is an issue that causes all releases after 1.34 to fail on Pytest
|
||||||
|
;; 5 (see: https://github.com/pytest-dev/pytest-xdist/issues/697).
|
||||||
|
(version "1.34.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "pytest-xdist" version))
|
(uri (pypi-uri "pytest-xdist" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0wh6pn66nncfs6ay0n863bgyriwsgppn8flx5l7551j1lbqkinc2"))
|
"1vh4ps32lp5ignch5adbl3pgchvigdfmrl6qpmhxih54wa1qw3il"))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
;; Remove pre-compiled .pyc files from source.
|
|
||||||
(for-each delete-file-recursively
|
|
||||||
(find-files "." "__pycache__" #:directories? #t))
|
|
||||||
(for-each delete-file (find-files "." "\\.pyc$"))
|
|
||||||
#t))))
|
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f)) ;FIXME: Some tests are failing.
|
`(#:phases
|
||||||
;; #:phases
|
(modify-phases %standard-phases
|
||||||
;; (modify-phases %standard-phases
|
(replace 'check
|
||||||
;; (delete 'check)
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||||
;; (add-after 'install 'check
|
(when tests?
|
||||||
;; (lambda* (#:key inputs outputs #:allow-other-keys)
|
(add-installed-pythonpath inputs outputs)
|
||||||
;; (add-installed-pythonpath inputs outputs)
|
(invoke "pytest" "-vv"
|
||||||
;; (zero? (system* "py.test" "-v")))))
|
"-n" (number->string (parallel-job-count)))))))))
|
||||||
(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-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