2021-02-13 14:23:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, numpy
|
|
|
|
, pyyaml
|
|
|
|
, matplotlib
|
|
|
|
, h5py
|
2021-07-21 07:28:18 +00:00
|
|
|
, scipy
|
2021-02-13 14:23:35 +00:00
|
|
|
, spglib
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "phonopy";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.12.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "ff65065f418ccbff9fbc1186b9a65581e83b42789aa4a656f45badfff9bd3f61";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
pyyaml
|
|
|
|
scipy
|
|
|
|
spglib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# prevent pytest from importing local directory
|
|
|
|
preCheck = ''
|
|
|
|
rm -r phonopy
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A package for phonon calculations at harmonic and quasi-harmonic levels";
|
|
|
|
homepage = "https://atztogo.github.io/phonopy/";
|
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|