gnu: python-pytest-fork: Update to 1.6.0.

* gnu/packages/check.scm (python-pytest-fork): Update to 1.6.0.
[build-system]: Use pyproject-build-system.
[arguments]: Replace disable-setuptools-scm phase with pretend-version.
[native-inputs]: Remove input labels.  Add python-setuptools-scm.
(python-pytest-forked-next): Delete variable.
(python-pytest-xdist-next): Replace python-pytest-forked-next with
python-pytest-forked.
This commit is contained in:
Maxim Cournoyer 2023-04-13 15:51:05 -04:00
parent 0cc9950863
commit 97ed675718
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -1693,7 +1693,7 @@ result back.")
(base32 (base32
"1psf5dqxvc38qzxvc305mkg5xpdmdkbkkfiyqlmdnkgh7z5dx025")))) "1psf5dqxvc38qzxvc305mkg5xpdmdkbkkfiyqlmdnkgh7z5dx025"))))
(propagated-inputs (list python-execnet python-pytest (propagated-inputs (list python-execnet python-pytest
python-pytest-forked-next)))) python-pytest-forked))))
(define-public python-pytest-timeout (define-public python-pytest-timeout
(package (package
@ -1728,7 +1728,7 @@ timeout has been exceeded.")
(define-public python-pytest-forked (define-public python-pytest-forked
(package (package
(name "python-pytest-forked") (name "python-pytest-forked")
(version "1.3.0") (version "1.6.0")
(source (source
(origin (origin
(method git-fetch) ;for tests (method git-fetch) ;for tests
@ -1738,29 +1738,23 @@ timeout has been exceeded.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1aip4kx50ynvykl7kq2mlbsi82vx701dvb8mm64lhp69bbv105rc")))) "1y93q914gwf0nshql1qix6sj826q163b04vw17zmwhsnbv00c2d3"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'disable-setuptools-scm (add-before 'build 'pretend-version
(lambda _ ;; The version string is usually derived via setuptools-scm,
(substitute* "setup.py" ;; but without the git metadata available, the version string
(("use_scm_version=True") ;; is set to '0.0.0'.
(format #f "version=~s" ,version)) (lambda _
(("setup_requires=\\['setuptools_scm'\\],.*") (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
""))))
(replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv")))))))
(native-inputs (native-inputs
;; XXX: The bootstrap variant of Pytest is used to ensure the ;; XXX: The bootstrap variant of Pytest is used to ensure the
;; 'hypothesis' plugin is not in the environment (due to ;; 'hypothesis' plugin is not in the environment (due to
;; <http://issues.guix.gnu.org/25235>), which would cause the test suite ;; <http://issues.guix.gnu.org/25235>), which would cause the test suite
;; to fail (see: https://github.com/pytest-dev/pytest-forked/issues/54). ;; to fail (see: https://github.com/pytest-dev/pytest-forked/issues/54).
`(("python-pytest" ,python-pytest-bootstrap))) (list python-pytest-bootstrap python-setuptools-scm))
(home-page "https://github.com/pytest-dev/pytest-forked") (home-page "https://github.com/pytest-dev/pytest-forked")
(synopsis "Pytest plugin to run tests in isolated forked subprocesses") (synopsis "Pytest plugin to run tests in isolated forked subprocesses")
(description "This package provides a Pytest plugin which enables running (description "This package provides a Pytest plugin which enables running
@ -1769,23 +1763,6 @@ can be useful to isolate tests against undesirable global environment
side-effects (such as setting environment variables).") side-effects (such as setting environment variables).")
(license license:expat))) (license license:expat)))
(define-public python-pytest-forked-next
(package
(inherit python-pytest-forked)
(name "python-pytest-forked")
(version "1.4.0")
(source
(origin
(method git-fetch) ;for tests
(uri (git-reference
(url "https://github.com/pytest-dev/pytest-forked")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0j9bbjny7h3b4fig6l26f26c697r67mm62fzdd9m9rqyy2bmnqjs"))))
(native-inputs (list python-pytest-bootstrap python-setuptools-scm))))
(define-public python-scripttest (define-public python-scripttest
(package (package
(name "python-scripttest") (name "python-scripttest")