mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-19 09:22:05 -05:00
gnu: python-pytest-forked: Update to 1.4.0.
* gnu/packages/check.scm (python-pytest-forked): Update to 1.4.0. [phases]{pretend-version}: New phase. {disable-setuptools-scm}: Delete phase. {check}: Streamline. [native-inputs]: Add python-setuptools-scm.
This commit is contained in:
parent
6b6fb78724
commit
189b1c4f27
1 changed files with 6 additions and 11 deletions
|
@ -1491,7 +1491,7 @@ (define-public python-pytest-timeout
|
||||||
(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.4.0")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch) ;for tests
|
(method git-fetch) ;for tests
|
||||||
|
@ -1501,29 +1501,24 @@ (define-public python-pytest-forked
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1aip4kx50ynvykl7kq2mlbsi82vx701dvb8mm64lhp69bbv105rc"))))
|
"0j9bbjny7h3b4fig6l26f26c697r67mm62fzdd9m9rqyy2bmnqjs"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-setuptools-scm
|
(add-before 'build 'pretend-version
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "setup.py"
|
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)))
|
||||||
(("use_scm_version=True")
|
|
||||||
(format #f "version=~s" ,version))
|
|
||||||
(("setup_requires=\\['setuptools_scm'\\],.*")
|
|
||||||
""))))
|
|
||||||
(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")))))))
|
||||||
(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
|
||||||
|
|
Loading…
Reference in a new issue