about summary refs log tree commit diff
path: root/pkgs/development/python-modules/phonopy
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-07-05 21:06:50 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-07-05 12:34:02 -0700
commit6b972ad4252056bd377c6f1c25ae7e65c268840d (patch)
treec83aaa1db3a421419b6c9e4f6113504b4d697d0c /pkgs/development/python-modules/phonopy
parent1b4cff3a848df83e553603875b812e973951d164 (diff)
python3Packages.phonopy: add missing scipy dependency
Not given in requirements but apparently an optional dependendency
as the tests are failing without it.

phonopy/qha/eos.py:

        try:
            from scipy.optimize import leastsq
            import scipy
        except ImportError:
            print("You need to install python-scipy.")
            sys.exit(1)
Diffstat (limited to 'pkgs/development/python-modules/phonopy')
-rw-r--r--pkgs/development/python-modules/phonopy/default.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/phonopy/default.nix b/pkgs/development/python-modules/phonopy/default.nix
index 2ca29ffd8e3df..af728d414c1b4 100644
--- a/pkgs/development/python-modules/phonopy/default.nix
+++ b/pkgs/development/python-modules/phonopy/default.nix
@@ -5,6 +5,7 @@
 , pyyaml
 , matplotlib
 , h5py
+, scipy
 , spglib
 , pytestCheckHook
 }:
@@ -18,9 +19,18 @@ buildPythonPackage rec {
     sha256 = "58485042ab7d88fc8b83744d18b2aefd677adb071c8a717ac3710458192743d7";
   };
 
-  propagatedBuildInputs = [ numpy pyyaml matplotlib h5py spglib ];
+  propagatedBuildInputs = [
+    h5py
+    matplotlib
+    numpy
+    pyyaml
+    scipy
+    spglib
+  ];
 
-  checkInputs = [ pytestCheckHook ];
+  checkInputs = [
+    pytestCheckHook
+  ];
 
   # prevent pytest from importing local directory
   preCheck = ''