diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-04-12 14:38:06 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-04-12 14:59:22 -0400 |
commit | 3f2b0e12f1ef0cc9e13d5ae00275fee8a0fa752d (patch) | |
tree | c2ac790abebf3197ab328a96a04d5930069ab73b /gnu/packages/check.scm | |
parent | 189b1c4f27b4626e50552caac9b0f08b9fad62be (diff) |
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.
Diffstat (limited to 'gnu/packages/check.scm')
-rw-r--r-- | gnu/packages/check.scm | 52 |
1 files changed, 8 insertions, 44 deletions
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 1182f10b09..571216c4d8 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1390,44 +1390,27 @@ same arguments.") (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 @@ program code to a remote location, executes there, and then syncs the 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") |