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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.3.8";
|
2022-01-07 04:07:37 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
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}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-nQ5US7maFcOJCqFYeokGiBFp3jhiOPSfCBeclLdHdkk=";
|
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
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-07 04:07:37 +00:00
|
|
|
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";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/SMTG-Bham/sumo/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psyanticy ];
|
|
|
|
};
|
|
|
|
}
|