2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
2022-04-03 18:54:34 +00:00
|
|
|
, ase
|
2021-12-06 16:07:01 +00:00
|
|
|
, 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
|
2022-04-03 18:54:34 +00:00
|
|
|
, phonopy
|
2021-12-06 16:07:01 +00:00
|
|
|
, potentials
|
2022-04-03 18:54:34 +00:00
|
|
|
, pymatgen
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2022-04-03 18:54:34 +00:00
|
|
|
, requests
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
|
|
|
, toolz
|
|
|
|
, xmltodict
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-03 18:54:34 +00:00
|
|
|
version = "1.4.4";
|
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}";
|
2022-04-03 18:54:34 +00:00
|
|
|
hash = "sha256-iLAB0KMtrTCyGpx+81QfHDPVDhq8OA6CDL/ipVRpyo0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cython
|
|
|
|
datamodeldict
|
|
|
|
matplotlib
|
|
|
|
numericalunits
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
potentials
|
2022-04-03 18:54:34 +00:00
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
scipy
|
|
|
|
toolz
|
|
|
|
xmltodict
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2022-04-03 18:54:34 +00:00
|
|
|
ase
|
|
|
|
phonopy
|
|
|
|
pymatgen
|
2021-12-06 16:07:01 +00:00
|
|
|
pytest
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-12-06 16:07:01 +00:00
|
|
|
# pytestCheckHook doesn't work
|
2022-04-03 18:54:34 +00:00
|
|
|
pytest tests -k "not test_rootdir and not test_version \
|
|
|
|
and not test_atomic_mass and not imageflags" \
|
|
|
|
--ignore tests/plot/test_interpolate.py
|
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
|
|
|
};
|
|
|
|
}
|