me
/
guix
Archived
1
0
Fork 0

gnu: python-pytest-flakes: Fix build.

* python.scm (python-pytest-flakes): Set PYTHONPATH prior to running tests.
master
Hartmut Goebel 2016-10-07 21:48:36 +02:00
parent 6151120a71
commit 05c2fd3685
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 4 additions and 1 deletions

View File

@ -10960,7 +10960,10 @@ failures.")
(modify-phases %standard-phases
(delete 'check)
(add-after 'install 'check
(lambda _ ; It's easier to run tests after install.
(lambda* (#:key outputs inputs #:allow-other-keys)
;; It's easier to run tests after install.
;; Make installed package available for running the tests
(add-installed-pythonpath inputs outputs)
(zero? (system* "py.test" "-vv")))))))
(native-inputs
`(("python-coverage" ,python-coverage)