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)
This commit is contained in:
Martin Weinelt 2021-07-05 21:06:50 +02:00 committed by Jonathan Ringer
parent 1b4cff3a84
commit 6b972ad425

View File

@ -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 = ''