mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-10 13:40:20 +01:00
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
1 changed files with 14 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue