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
|
2022-09-09 14:08:57 +00:00
|
|
|
, colormath
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sumo";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "2.3.4";
|
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";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-kgTTYCTq8jTNOmc92TRskbsOcnk6wTZgf0UfoctJ4M4=";
|
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 = [
|
2022-09-09 14:08:57 +00:00
|
|
|
castepxbin
|
|
|
|
colormath
|
2021-05-20 23:08:51 +00:00
|
|
|
h5py
|
|
|
|
matplotlib
|
2022-09-09 14:08:57 +00:00
|
|
|
numpy
|
|
|
|
phonopy
|
|
|
|
pymatgen
|
|
|
|
scipy
|
2021-05-20 23:08:51 +00:00
|
|
|
seekpath
|
2022-09-09 14:08:57 +00:00
|
|
|
spglib
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|