depot/third_party/nixpkgs/pkgs/development/python-modules/sumo/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

65 lines
1.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.7";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "SMTG-UCL";
repo = "sumo";
rev = "refs/tags/v${version}";
hash = "sha256-9NHz8SPymD9zANWMeajjavpjw68X4abqhrLl0dn92l0=";
};
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";
changelog = "https://github.com/SMTG-Bham/sumo/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}