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
|
2022-10-06 18:32:54 +00:00
|
|
|
, pythonOlder
|
2021-02-13 14:23:35 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "phonopy";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.20.0";
|
2022-10-06 18:32:54 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-peL50b1u+tBRxt/U2SloRvS9LTeMXEjrF5F3ZWhJmZ4=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-21 07:28:18 +00:00
|
|
|
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
|
|
|
'';
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"phonopy"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-10-06 18:32:54 +00:00
|
|
|
description = "Modulefor phonon calculations at harmonic and quasi-harmonic levels";
|
|
|
|
homepage = "https://phonopy.github.io/phonopy/";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/phonopy/phonopy/blob/v${version}/doc/changelog.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|