aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/phonopy/default.nix
blob: b476543c06a945fce238e022c744fc76becd643f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, buildPythonPackage, python, fetchPypi, numpy, pyyaml, matplotlib, h5py, spglib, pytestCheckHook }:

buildPythonPackage rec {
  pname = "phonopy";
  version = "2.7.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "482c6ff29c058d091ac885e561e28ba3e516ea9e91c44a951cad11f3ae19856c";
  };

  propagatedBuildInputs = [ numpy pyyaml matplotlib h5py spglib ];

  checkInputs = [ pytestCheckHook ];
  # flakey due to floating point inaccuracy
  disabledTests = [ "test_NaCl" ];

  # prevent pytest from importing local directory
  preCheck = ''
    rm -r phonopy
  '';

  meta = with stdenv.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 ];
  };
}