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:
parent
3c8ad0876c
commit
dce9b8b52c
@ -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/")
|
||||
|
Loading…
Reference in New Issue
Block a user