mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-16 07:58:01 -05:00
gnu: python-pytest-xdist: Update to 2.5.0.
* gnu/packages/check.scm (python-pytest-xdist): Update to 2.5.0. [source]: Remove obsolete snippet. [phases]{patch-setup-py}: Delete phase. {check}: Streamline. [native-inputs, propagated-inputs, home-page]: Fix indentation. (python2-pytest-xdist): Delete variable. (python-pytest-xdist-next): Delete variable. * gnu/packages/django.scm (python-pytest-django): Use regular python-pytest-xdist. * gnu/packages/python-check.scm (python-pytest-csv): Likewise, and ditto for python-pytest.
This commit is contained in:
parent
189b1c4f27
commit
3f2b0e12f1
3 changed files with 11 additions and 49 deletions
|
@ -1390,44 +1390,27 @@ (define-public python2-pytest-mock
|
|||
(define-public python-pytest-xdist
|
||||
(package
|
||||
(name "python-pytest-xdist")
|
||||
(version "2.1.0")
|
||||
(version "2.5.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "pytest-xdist" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0wh6pn66nncfs6ay0n863bgyriwsgppn8flx5l7551j1lbqkinc2"))
|
||||
(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))))
|
||||
"1psf5dqxvc38qzxvc305mkg5xpdmdkbkkfiyqlmdnkgh7z5dx025"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
'(#:tests? #f ; Lots of tests fail.
|
||||
#:phases
|
||||
'(#: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 inputs outputs tests? #:allow-other-keys)
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "pytest" "-vv"
|
||||
"-n" (number->string (parallel-job-count)))))))))
|
||||
(native-inputs
|
||||
(list python-setuptools-scm))
|
||||
(propagated-inputs
|
||||
(list python-execnet python-pytest python-py python-pytest-forked))
|
||||
(home-page
|
||||
"https://github.com/pytest-dev/pytest-xdist")
|
||||
(native-inputs (list python-setuptools-scm))
|
||||
(propagated-inputs (list python-execnet python-pytest python-py
|
||||
python-pytest-forked))
|
||||
(home-page "https://github.com/pytest-dev/pytest-xdist")
|
||||
(synopsis
|
||||
"Plugin for py.test with distributed testing and loop-on-failing modes")
|
||||
(description
|
||||
|
@ -1439,25 +1422,6 @@ (define-public python-pytest-xdist
|
|||
result back.")
|
||||
(license license:expat)))
|
||||
|
||||
(define-public python2-pytest-xdist
|
||||
(package-with-python2 python-pytest-xdist))
|
||||
|
||||
(define-public python-pytest-xdist-next
|
||||
(package/inherit python-pytest-xdist
|
||||
(name "python-pytest-xdist")
|
||||
(version "2.3.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "pytest-xdist" version))
|
||||
(sha256
|
||||
(base32
|
||||
"19cy57jrf3pwi7x6fnbxryjvqagsl0yv736jnynvr3yqhlpxxv78"))))
|
||||
(propagated-inputs
|
||||
`(("python-execnet" ,python-execnet)
|
||||
("python-pytest" ,python-pytest-6)
|
||||
("python-pytest-forked" ,python-pytest-forked)))))
|
||||
|
||||
(define-public python-pytest-timeout
|
||||
(package
|
||||
(name "python-pytest-timeout")
|
||||
|
|
|
@ -391,9 +391,7 @@ (define-public python-pytest-django
|
|||
" and not test_urls_cache_is_cleared")))
|
||||
(format #t "test suite not run~%")))))))
|
||||
(native-inputs
|
||||
(list python-django python-setuptools-scm
|
||||
;; For tests.
|
||||
python-pytest-xdist-next))
|
||||
(list python-django python-setuptools-scm python-pytest-xdist))
|
||||
(propagated-inputs
|
||||
(list python-pytest))
|
||||
(home-page "https://pytest-django.readthedocs.org/")
|
||||
|
|
|
@ -112,9 +112,9 @@ (define-public python-pytest-csv
|
|||
(add-installed-pythonpath inputs outputs)
|
||||
(invoke "pytest")))))))
|
||||
(native-inputs
|
||||
(list python-pytest-flake8 python-pytest-xdist-next python-tabulate))
|
||||
(list python-pytest-flake8 python-pytest-xdist python-tabulate))
|
||||
(propagated-inputs
|
||||
(list python-pytest-6 python-six))
|
||||
(list python-pytest python-six))
|
||||
(home-page "https://github.com/nicoulaj/pytest-csv")
|
||||
(synopsis "CSV reporter for Pytest")
|
||||
(description "This package provides a plugin for Pytest that enables a
|
||||
|
|
Loading…
Reference in a new issue