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