nixpkgs-suyu/pkgs/development/python-modules/sumo/default.nix

43 lines
907 B
Nix
Raw Normal View History

2019-07-04 15:49:46 +02:00
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, h5py
, matplotlib
, numpy
, phonopy
, pymatgen
, pytest
, scipy
, seekpath
, spglib
}:
2018-07-11 19:28:05 +02:00
buildPythonPackage rec {
pname = "sumo";
version = "1.0.9";
# No tests in Pypi tarball
src = fetchFromGitHub {
owner = "SMTG-UCL";
repo = "sumo";
rev = "v${version}";
sha256 = "1zw86qp9ycw2k0anw6pzvwgd3zds0z2cwy0s663zhiv9mnb5hx1n";
};
propagatedBuildInputs = [ numpy scipy spglib pymatgen h5py matplotlib seekpath phonopy ];
2019-07-04 15:49:46 +02:00
checkInputs = [ pytest ];
checkPhase = ''
pytest .
'';
# tests have type annotations, can only run on 3.5+
doCheck = (!isPy27);
2018-07-11 19:28:05 +02:00
meta = with stdenv.lib; {
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
2019-07-04 15:49:46 +02:00
homepage = "https://github.com/SMTG-UCL/sumo";
2018-07-11 19:28:05 +02:00
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}