htgoebel pushed a commit to branch wip-python-build-system
in repository guix.

commit 002a295bd61c164d73cde5f8a195e6c55d664c77
Author: Hartmut Goebel <h.goe...@crazy-compilers.com>
Date:   Fri Oct 7 21:48:36 2016 +0200

    gnu: python-pytest-flakes: Fix build.
    
    * python.scm (python-pytest-flakes): Set PYTHONPATH prior to running tests.
---
 gnu/packages/python.scm |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index fdc9d37..f298a41 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10132,7 +10132,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 outputs inputs)
              (zero? (system* "py.test" "-vv")))))))
     (native-inputs
      `(("python-coverage" ,python-coverage)

Reply via email to