mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 20:57:12 -05:00
gnu: python-cfn-lint: Honor #:tests? flag.
* gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic changes. Adjust custom 'check phase to honor the #:tests? flag. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
f3416ebc2e
commit
dbf5d938c5
1 changed files with 17 additions and 17 deletions
|
@ -514,23 +514,23 @@ (define-public python-cfn-lint
|
||||||
"106qf19n2k6sdjkb4006aidibd24qqiw901c1613xgjpnyw4dyl6"))))
|
"106qf19n2k6sdjkb4006aidibd24qqiw901c1613xgjpnyw4dyl6"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases
|
||||||
(replace 'check
|
(modify-phases %standard-phases
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(replace 'check
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
||||||
;; Remove test for the documentation update scripts
|
(when tests?
|
||||||
;; to avoid a dependency on 'git'.
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(delete-file
|
;; Remove test for the documentation update scripts
|
||||||
"test/unit/module/maintenance/test_update_documentation.py")
|
;; to avoid a dependency on 'git'.
|
||||||
(delete-file
|
(delete-file
|
||||||
"test/unit/module/maintenance/test_update_resource_specs.py")
|
"test/unit/module/maintenance/test_update_documentation.py")
|
||||||
(setenv "PYTHONPATH"
|
(delete-file
|
||||||
(string-append "./build/lib:"
|
"test/unit/module/maintenance/test_update_resource_specs.py")
|
||||||
(getenv "PYTHONPATH")))
|
(add-installed-pythonpath inputs outputs)
|
||||||
(setenv "PATH" (string-append out "/bin:"
|
(setenv "PATH" (string-append out "/bin:"
|
||||||
(getenv "PATH")))
|
(getenv "PATH")))
|
||||||
(invoke "python" "-m" "unittest" "discover" "-v"
|
(invoke "python" "-m" "unittest" "discover"
|
||||||
"-s" "test")))))))
|
"-s" "test"))))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pydot" ,python-pydot)
|
`(("python-pydot" ,python-pydot)
|
||||||
("python-mock" ,python-mock)))
|
("python-mock" ,python-mock)))
|
||||||
|
|
Loading…
Reference in a new issue