mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-04 09:16:31 +01:00
gnu: Add python-pytest-enabler.
* gnu/packages/check.scm (python-pytest-enabler): New variable.
This commit is contained in:
parent
59944e875a
commit
9010b1adfd
1 changed files with 30 additions and 0 deletions
|
@ -2225,6 +2225,36 @@ (define-public python-pytest-enabler-bootstrap
|
||||||
(description "Enable installed pytest plugins")
|
(description "Enable installed pytest plugins")
|
||||||
(license license:expat))))
|
(license license:expat))))
|
||||||
|
|
||||||
|
(define-public python-pytest-enabler
|
||||||
|
(package/inherit python-pytest-enabler-bootstrap
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments
|
||||||
|
(package-arguments python-pytest-enabler-bootstrap)
|
||||||
|
((#:tests? _ #f)
|
||||||
|
#t)
|
||||||
|
((#:phases phases #~%standard-phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "python" "-m" "pytest" "-vv" "tests"))))))))
|
||||||
|
(propagated-inputs
|
||||||
|
(modify-inputs (package-propagated-inputs python-pytest-enabler-bootstrap)
|
||||||
|
(replace "python-jaraco-context-bootstrap" python-jaraco-context)
|
||||||
|
(replace "python-jaraco-functools-bootstrap" python-jaraco-functools)))
|
||||||
|
(native-inputs
|
||||||
|
(modify-inputs (package-native-inputs python-pytest-enabler-bootstrap)
|
||||||
|
(append python-pytest
|
||||||
|
python-pytest-black
|
||||||
|
python-pytest-checkdocs
|
||||||
|
python-pytest-cov
|
||||||
|
python-pytest-flake8
|
||||||
|
python-pytest-mypy
|
||||||
|
python-types-toml)))
|
||||||
|
(properties (alist-delete 'hidden?
|
||||||
|
(package-properties
|
||||||
|
python-pytest-enabler-bootstrap)))))
|
||||||
|
|
||||||
(define-public python-pytest-freezegun
|
(define-public python-pytest-freezegun
|
||||||
(package
|
(package
|
||||||
(name "python-pytest-freezegun")
|
(name "python-pytest-freezegun")
|
||||||
|
|
Loading…
Reference in a new issue