2022-01-07 04:07:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-05-20 23:08:51 +00:00
|
|
|
, pythonOlder
|
2022-02-20 05:27:41 +00:00
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
, h5py
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, phonopy
|
|
|
|
, pymatgen
|
|
|
|
, scipy
|
|
|
|
, seekpath
|
|
|
|
, spglib
|
2021-05-20 23:08:51 +00:00
|
|
|
, castepxbin
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sumo";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.2.5";
|
2022-01-07 04:07:37 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SMTG-UCL";
|
|
|
|
repo = "sumo";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "1vwqyv215yf51j1278cn7l8mpqmy1grm9j7z3hxjlz4w65cff324";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
spglib
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
h5py
|
|
|
|
pymatgen
|
|
|
|
phonopy
|
|
|
|
matplotlib
|
|
|
|
seekpath
|
|
|
|
castepxbin
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
# slight disagreement between caastepxbin versions
|
|
|
|
"test_castep_phonon_read_bands"
|
|
|
|
];
|
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "castepxbin==0.1.0" "castepxbin>=0.1.0"
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sumo"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
|
|
|
|
homepage = "https://github.com/SMTG-UCL/sumo";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|