nixpkgs/pkgs/development/python-modules/sumo/default.nix

50 lines
900 B
Nix
Raw Normal View History

2021-05-08 09:06:20 +01:00
{ lib, buildPythonPackage, fetchFromGitHub
, pythonOlder
2019-07-04 14:49:46 +01:00
, h5py
, matplotlib
, numpy
, phonopy
, pymatgen
, scipy
, seekpath
, spglib
2021-05-08 09:06:20 +01:00
, castepxbin
, pytestCheckHook
2019-07-04 14:49:46 +01:00
}:
2018-07-11 18:28:05 +01:00
buildPythonPackage rec {
pname = "sumo";
2021-05-08 09:06:20 +01:00
version = "2.2.4";
disabled = pythonOlder "3.6";
2018-07-11 18:28:05 +01:00
# No tests in Pypi tarball
src = fetchFromGitHub {
owner = "SMTG-UCL";
repo = "sumo";
rev = "v${version}";
2021-05-08 09:06:20 +01:00
sha256 = "051353gsxmh4qnabshfnc00mmzdbh1fgk1xdfnsfgcnijxgw25bb";
2018-07-11 18:28:05 +01:00
};
2021-05-08 09:06:20 +01:00
propagatedBuildInputs = [
spglib
numpy
scipy
h5py
pymatgen
phonopy
matplotlib
seekpath
castepxbin
];
2019-07-04 14:49:46 +01:00
2021-05-08 09:06:20 +01:00
checkInputs = [ pytestCheckHook ];
2019-07-04 14:49:46 +01:00
meta = with lib; {
2018-07-11 18:28:05 +01:00
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
2019-07-04 14:49:46 +01:00
homepage = "https://github.com/SMTG-UCL/sumo";
2018-07-11 18:28:05 +01:00
license = licenses.mit;
maintainers = with maintainers; [ psyanticy ];
};
}