2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
2019-07-04 14:49:46 +01:00
|
|
|
, h5py
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, phonopy
|
|
|
|
, pymatgen
|
|
|
|
, pytest
|
|
|
|
, scipy
|
|
|
|
, seekpath
|
|
|
|
, spglib
|
|
|
|
}:
|
2018-07-11 18:28:05 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sumo";
|
2021-03-24 17:41:56 +00:00
|
|
|
version = "2.2.1";
|
2018-07-11 18:28:05 +01:00
|
|
|
|
|
|
|
# No tests in Pypi tarball
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SMTG-UCL";
|
|
|
|
repo = "sumo";
|
|
|
|
rev = "v${version}";
|
2021-03-24 17:41:56 +00:00
|
|
|
sha256 = "0r88f5w33h9b0mv7shlqc4przwvas5ycgndvl91wqjnm3b2s3ix0";
|
2018-07-11 18:28:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy scipy spglib pymatgen h5py matplotlib seekpath phonopy ];
|
2019-07-04 14:49:46 +01:00
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest .
|
|
|
|
'';
|
|
|
|
|
|
|
|
# tests have type annotations, can only run on 3.5+
|
|
|
|
doCheck = (!isPy27);
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-11 18:28:05 +01:00
|
|
|
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
|
2019-07-04 14:49:46 +01:00
|
|
|
homepage = "https://github.com/SMTG-UCL/sumo";
|
2018-07-11 18:28:05 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|