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:
Marius Bakke 2020-01-16 08:31:39 +01:00
parent 0ae97f5dd1
commit 0e648e6160
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -8990,13 +8990,16 @@ python-xdo for newer bindings.)")
(arguments
`(#:phases (modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "pytest" "-vv"))))))
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(invoke "nosetests" "-v")
(format #t "test suite not run~%"))
#t)))))
(propagated-inputs
`(("python-markupsafe" ,python-markupsafe)))
(native-inputs
`(("python-mock" ,python-mock)
("python-pytest" ,python-pytest)))
("python-nose" ,python-nose)))
(home-page "https://www.makotemplates.org/")
(synopsis "Templating language for Python")
(description "Mako is a templating language for Python that compiles