2021-02-06 17:11:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, pyyaml
|
|
|
|
, matplotlib
|
|
|
|
, h5py
|
2021-07-05 19:06:50 +00:00
|
|
|
, scipy
|
2021-02-06 17:11:38 +00:00
|
|
|
, spglib
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-07-11 17:23:35 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "phonopy";
|
2021-06-18 21:47:29 +00:00
|
|
|
version = "2.10.0";
|
2018-07-11 17:23:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 21:47:29 +00:00
|
|
|
sha256 = "58485042ab7d88fc8b83744d18b2aefd677adb071c8a717ac3710458192743d7";
|
2018-07-11 17:23:35 +00:00
|
|
|
};
|
|
|
|
|
2021-07-05 19:06:50 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pyyaml
|
|
|
|
scipy
|
|
|
|
spglib
|
|
|
|
];
|
2018-09-07 06:41:24 +00:00
|
|
|
|
2021-07-05 19:06:50 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-08-27 21:37:40 +00:00
|
|
|
|
|
|
|
# prevent pytest from importing local directory
|
|
|
|
preCheck = ''
|
|
|
|
rm -r phonopy
|
2018-07-11 17:23:35 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-11 17:23:35 +00:00
|
|
|
description = "A package for phonon calculations at harmonic and quasi-harmonic levels";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://atztogo.github.io/phonopy/";
|
2018-07-11 17:23:35 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|