2019-11-28 00:43:32 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
|
|
|
|
, cython
|
2018-10-10 23:13:56 +01:00
|
|
|
, datamodeldict
|
|
|
|
, matplotlib
|
|
|
|
, numericalunits
|
2019-11-28 00:43:32 +00:00
|
|
|
, numpy
|
|
|
|
, pandas
|
2018-10-10 23:13:56 +01:00
|
|
|
, pytest
|
2019-11-28 00:43:32 +00:00
|
|
|
, scipy
|
|
|
|
, toolz
|
|
|
|
, xmltodict
|
2018-10-10 23:13:56 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-11-28 00:43:32 +00:00
|
|
|
version = "1.3.0";
|
2018-10-10 23:13:56 +01:00
|
|
|
pname = "atomman";
|
2019-11-28 00:43:32 +00:00
|
|
|
disabled = isPy27;
|
2018-10-10 23:13:56 +01:00
|
|
|
|
2019-11-28 00:43:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "usnistgov";
|
|
|
|
repo = "atomman";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "09pfykd96wmw00s3kgabghykjn8b4yjml4ybpi7kwy7ygdmzcx51";
|
2018-10-10 23:13:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
2019-11-28 00:43:32 +00:00
|
|
|
propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits toolz ];
|
2018-10-10 23:13:56 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-11-28 00:43:32 +00:00
|
|
|
py.test tests -k 'not test_atomic'
|
2018-10-10 23:13:56 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/usnistgov/atomman/";
|
2018-10-10 23:13:56 +01:00
|
|
|
description = "Atomistic Manipulation Toolkit";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|