mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-11 14:26:13 +01:00
gnu: python-mako: Do not use pytest nose compatibility layer.
* gnu/packages/python-xyz.scm (python-mako)[native-inputs]: Replace PYTHON-PYTEST with PYTHON-NOSE. [arguments]: Adjust check phase accordingly. While at it, allow overriding the #:tests? key.
This commit is contained in:
parent
0ae97f5dd1
commit
0e648e6160
1 changed files with 6 additions and 3 deletions
|
@ -8990,13 +8990,16 @@ python-xdo for newer bindings.)")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases (modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(invoke "pytest" "-vv"))))))
|
(if tests?
|
||||||
|
(invoke "nosetests" "-v")
|
||||||
|
(format #t "test suite not run~%"))
|
||||||
|
#t)))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-markupsafe" ,python-markupsafe)))
|
`(("python-markupsafe" ,python-markupsafe)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-mock" ,python-mock)
|
`(("python-mock" ,python-mock)
|
||||||
("python-pytest" ,python-pytest)))
|
("python-nose" ,python-nose)))
|
||||||
(home-page "https://www.makotemplates.org/")
|
(home-page "https://www.makotemplates.org/")
|
||||||
(synopsis "Templating language for Python")
|
(synopsis "Templating language for Python")
|
||||||
(description "Mako is a templating language for Python that compiles
|
(description "Mako is a templating language for Python that compiles
|
||||||
|
|
Loading…
Add table
Reference in a new issue