~ruther/guix-local

25b2c47d753efd0761a4e16519dce38d828789f5 — Hartmut Goebel 9 years ago d5e41cf
gnu: python-statsmodels: Fix build

* gnu/packages/statistics.scm (python-statsmodels): [check] set
  PYTHONPATH prior to running tests.
1 files changed, 7 insertions(+), 5 deletions(-)

M gnu/packages/statistics.scm
M gnu/packages/statistics.scm => gnu/packages/statistics.scm +7 -5
@@ 1444,11 1444,13 @@ building design matrices.")
                              line)))
            #t))
         (add-after 'install 'check
          (lambda _
            (with-directory-excursion "/tmp"
              (zero? (system* "nosetests"
                              "--stop"
                              "-v" "statsmodels"))))))))
           (lambda* (#:key inputs outputs #:allow-other-keys)
             ;; Make installed package available for running the tests
             (add-installed-pythonpath inputs outputs)
             (with-directory-excursion "/tmp"
               (zero? (system* "nosetests"
                               "--stop"
                               "-v" "statsmodels"))))))))
    (propagated-inputs
     `(("python-numpy" ,python-numpy)
       ("python-scipy" ,python-scipy)