2018-10-10 23:13:56 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, xmltodict
|
|
|
|
, datamodeldict
|
|
|
|
, numpy
|
|
|
|
, matplotlib
|
|
|
|
, scipy
|
|
|
|
, pandas
|
|
|
|
, cython
|
|
|
|
, numericalunits
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-16 10:43:02 +01:00
|
|
|
version = "1.2.8";
|
2018-10-10 23:13:56 +01:00
|
|
|
pname = "atomman";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:02 +01:00
|
|
|
sha256 = "0ed099fdceca2d733e81afb08d777e8e852a6e53660d6d268f3739b8d323ced9";
|
2018-10-10 23:13:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits ];
|
|
|
|
|
|
|
|
# tests not included with Pypi release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/usnistgov/atomman/;
|
|
|
|
description = "Atomistic Manipulation Toolkit";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|