summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sumo
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/sumo
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/sumo')
-rw-r--r--pkgs/development/python-modules/sumo/default.nix33
1 files changed, 20 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/sumo/default.nix b/pkgs/development/python-modules/sumo/default.nix
index 9ba073df9228..cc47eafd1afa 100644
--- a/pkgs/development/python-modules/sumo/default.nix
+++ b/pkgs/development/python-modules/sumo/default.nix
@@ -1,37 +1,44 @@
-{ lib, buildPythonPackage, fetchFromGitHub, isPy27
+{ lib, buildPythonPackage, fetchFromGitHub
+, pythonOlder
, h5py
, matplotlib
, numpy
, phonopy
, pymatgen
-, pytest
, scipy
, seekpath
, spglib
+, castepxbin
+, pytestCheckHook
}:
buildPythonPackage rec {
pname = "sumo";
- version = "2.2.1";
+ version = "2.2.4";
+
+ disabled = pythonOlder "3.6";
# No tests in Pypi tarball
src = fetchFromGitHub {
owner = "SMTG-UCL";
repo = "sumo";
rev = "v${version}";
- sha256 = "0r88f5w33h9b0mv7shlqc4przwvas5ycgndvl91wqjnm3b2s3ix0";
+ sha256 = "051353gsxmh4qnabshfnc00mmzdbh1fgk1xdfnsfgcnijxgw25bb";
};
- propagatedBuildInputs = [ numpy scipy spglib pymatgen h5py matplotlib seekpath phonopy ];
-
- checkInputs = [ pytest ];
-
- checkPhase = ''
- pytest .
- '';
+ propagatedBuildInputs = [
+ spglib
+ numpy
+ scipy
+ h5py
+ pymatgen
+ phonopy
+ matplotlib
+ seekpath
+ castepxbin
+ ];
- # tests have type annotations, can only run on 3.5+
- doCheck = (!isPy27);
+ checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";