a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
64 lines
1 KiB
Nix
64 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, cython
|
|
, h5py
|
|
, matplotlib
|
|
, numpy
|
|
, phonopy
|
|
, pymatgen
|
|
, scipy
|
|
, seekpath
|
|
, spglib
|
|
, castepxbin
|
|
, pytestCheckHook
|
|
, colormath
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sumo";
|
|
version = "2.3.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SMTG-UCL";
|
|
repo = "sumo";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-eGQOFTo/tg1aM/P1la3stE7RLxpACUdcJ7g1z3zSasc=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
castepxbin
|
|
colormath
|
|
h5py
|
|
matplotlib
|
|
numpy
|
|
phonopy
|
|
pymatgen
|
|
scipy
|
|
seekpath
|
|
spglib
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sumo"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|