mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
65 lines
1.0 KiB
Nix
65 lines
1.0 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.6";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SMTG-UCL";
|
|
repo = "sumo";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-HQIs2G2hdKQkQOBs2lijmx/0cI4o/FFJU866PjtrBAE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|