guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

39/103: gnu: python-pytest-flakes: Fix build.


From: Hartmut Goebel
Subject: 39/103: gnu: python-pytest-flakes: Fix build.
Date: Tue, 25 Oct 2016 17:44:41 +0000 (UTC)

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

commit c1a1031292b87396123a455b0253571878db4f04
Author: Hartmut Goebel <address@hidden>
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 cdc56b1..aef7dfb 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10188,7 +10188,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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]