2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, cython
|
|
|
|
, datamodeldict
|
2021-12-06 16:07:01 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, matplotlib
|
|
|
|
, numericalunits
|
|
|
|
, numpy
|
|
|
|
, pandas
|
2021-12-06 16:07:01 +00:00
|
|
|
, potentials
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
|
|
|
, toolz
|
|
|
|
, xmltodict
|
2021-12-06 16:07:01 +00:00
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "atomman";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "usnistgov";
|
2021-12-06 16:07:01 +00:00
|
|
|
repo = "atomman";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-Kq4mDykYf74ylWw2golxc81CYKGokXro64YUsFctLmk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cython
|
|
|
|
datamodeldict
|
|
|
|
matplotlib
|
|
|
|
numericalunits
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
potentials
|
|
|
|
scipy
|
|
|
|
toolz
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
# pytestCheckHook doesn't work
|
|
|
|
py.test tests -k "not test_rootdir and not test_version \
|
|
|
|
and not test_atomic_mass and not imageflags"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"atomman"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Atomistic Manipulation Toolkit";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/usnistgov/atomman/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|