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 @@ same arguments.")
 | 
				
			||||||
(define-public python-pytest-xdist
 | 
					(define-public python-pytest-xdist
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "python-pytest-xdist")
 | 
					    (name "python-pytest-xdist")
 | 
				
			||||||
    (version "2.1.0")
 | 
					    (version "2.5.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"))
 | 
					         "1psf5dqxvc38qzxvc305mkg5xpdmdkbkkfiyqlmdnkgh7z5dx025"))))
 | 
				
			||||||
       (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 ; Lots of tests fail.
 | 
					     '(#:phases
 | 
				
			||||||
       #:phases
 | 
					 | 
				
			||||||
       (modify-phases %standard-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
 | 
					         (replace 'check
 | 
				
			||||||
           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
 | 
					           (lambda* (#:key tests? #:allow-other-keys)
 | 
				
			||||||
             (when tests?
 | 
					             (when tests?
 | 
				
			||||||
               (add-installed-pythonpath inputs outputs)
 | 
					 | 
				
			||||||
               (invoke "pytest" "-vv"
 | 
					               (invoke "pytest" "-vv"
 | 
				
			||||||
                       "-n" (number->string (parallel-job-count)))))))))
 | 
					                       "-n" (number->string (parallel-job-count)))))))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs (list python-setuptools-scm))
 | 
				
			||||||
     (list python-setuptools-scm))
 | 
					    (propagated-inputs (list python-execnet python-pytest python-py
 | 
				
			||||||
    (propagated-inputs
 | 
					                             python-pytest-forked))
 | 
				
			||||||
     (list python-execnet python-pytest python-py python-pytest-forked))
 | 
					    (home-page "https://github.com/pytest-dev/pytest-xdist")
 | 
				
			||||||
    (home-page
 | 
					 | 
				
			||||||
     "https://github.com/pytest-dev/pytest-xdist")
 | 
					 | 
				
			||||||
    (synopsis
 | 
					    (synopsis
 | 
				
			||||||
     "Plugin for py.test with distributed testing and loop-on-failing modes")
 | 
					     "Plugin for py.test with distributed testing and loop-on-failing modes")
 | 
				
			||||||
    (description
 | 
					    (description
 | 
				
			||||||
| 
						 | 
					@ -1439,25 +1422,6 @@ program code to a remote location, executes there, and then syncs the
 | 
				
			||||||
result back.")
 | 
					result back.")
 | 
				
			||||||
    (license license:expat)))
 | 
					    (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
 | 
					(define-public python-pytest-timeout
 | 
				
			||||||
  (package
 | 
					  (package
 | 
				
			||||||
    (name "python-pytest-timeout")
 | 
					    (name "python-pytest-timeout")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -391,9 +391,7 @@ size and quality.")
 | 
				
			||||||
                                        " and not test_urls_cache_is_cleared")))
 | 
					                                        " and not test_urls_cache_is_cleared")))
 | 
				
			||||||
               (format #t "test suite not run~%")))))))
 | 
					               (format #t "test suite not run~%")))))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list python-django python-setuptools-scm
 | 
					     (list python-django python-setuptools-scm python-pytest-xdist))
 | 
				
			||||||
           ;; For tests.
 | 
					 | 
				
			||||||
           python-pytest-xdist-next))
 | 
					 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     (list python-pytest))
 | 
					     (list python-pytest))
 | 
				
			||||||
    (home-page "https://pytest-django.readthedocs.org/")
 | 
					    (home-page "https://pytest-django.readthedocs.org/")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -112,9 +112,9 @@ interfaces with pytest.")
 | 
				
			||||||
               (add-installed-pythonpath inputs outputs)
 | 
					               (add-installed-pythonpath inputs outputs)
 | 
				
			||||||
               (invoke "pytest")))))))
 | 
					               (invoke "pytest")))))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list python-pytest-flake8 python-pytest-xdist-next python-tabulate))
 | 
					     (list python-pytest-flake8 python-pytest-xdist python-tabulate))
 | 
				
			||||||
    (propagated-inputs
 | 
					    (propagated-inputs
 | 
				
			||||||
     (list python-pytest-6 python-six))
 | 
					     (list python-pytest python-six))
 | 
				
			||||||
    (home-page "https://github.com/nicoulaj/pytest-csv")
 | 
					    (home-page "https://github.com/nicoulaj/pytest-csv")
 | 
				
			||||||
    (synopsis "CSV reporter for Pytest")
 | 
					    (synopsis "CSV reporter for Pytest")
 | 
				
			||||||
    (description "This package provides a plugin for Pytest that enables a
 | 
					    (description "This package provides a plugin for Pytest that enables a
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue