pythonPackages.sumo: fix tests
This commit is contained in:
parent
7e2ffea1de
commit
78f9c2d173
@ -1,4 +1,14 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, scipy, spglib, pymatgen, h5py, matplotlib, seekpath, phonopy }:
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
|
||||||
|
, h5py
|
||||||
|
, matplotlib
|
||||||
|
, numpy
|
||||||
|
, phonopy
|
||||||
|
, pymatgen
|
||||||
|
, pytest
|
||||||
|
, scipy
|
||||||
|
, seekpath
|
||||||
|
, spglib
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sumo";
|
pname = "sumo";
|
||||||
@ -13,12 +23,20 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy scipy spglib pymatgen h5py matplotlib seekpath phonopy ];
|
propagatedBuildInputs = [ numpy scipy spglib pymatgen h5py matplotlib seekpath phonopy ];
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest .
|
||||||
|
'';
|
||||||
|
|
||||||
|
# tests have type annotations, can only run on 3.5+
|
||||||
|
doCheck = (!isPy27);
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
|
description = "Toolkit for plotting and analysis of ab initio solid-state calculation data";
|
||||||
homepage = https://github.com/SMTG-UCL/sumo;
|
homepage = "https://github.com/SMTG-UCL/sumo";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ psyanticy ];
|
maintainers = with maintainers; [ psyanticy ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user