gnu: python-jinja2: Run the tests.

* gnu/packages/python-xyz.scm (python-jinja2)[native-inputs]: Add PYTHON-PYTEST.
[arguments]: New field.
This commit is contained in:
Marius Bakke 2020-02-12 20:13:40 +01:00
parent 3c8ad0876c
commit dce9b8b52c
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA

View File

@ -2459,6 +2459,20 @@ for Python.")
(base32
"0l72c11n959yzb8d3ankckb6yhjhm6x729zm7rkpk040qzxpy64k"))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(if tests?
(begin
(setenv "PYTHONPATH"
(string-append "./build/lib:"
(getenv "PYTHONPATH")))
(invoke "pytest" "-vv"))
(format #t "test suite not run~%"))
#t)))))
(native-inputs
`(("python-pytest" ,python-pytest)))
(propagated-inputs
`(("python-markupsafe" ,python-markupsafe)))
(home-page "http://jinja.pocoo.org/")