02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
46 lines
794 B
Nix
46 lines
794 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, numpy
|
|
, pyyaml
|
|
, matplotlib
|
|
, h5py
|
|
, scipy
|
|
, spglib
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "phonopy";
|
|
version = "2.15.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-iXvAXFtN1wKfasJAGt4FC04Q9Ntr4U2euA61YIdwLz0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
h5py
|
|
matplotlib
|
|
numpy
|
|
pyyaml
|
|
scipy
|
|
spglib
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
# prevent pytest from importing local directory
|
|
preCheck = ''
|
|
rm -r phonopy
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|