ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
66 lines
1.1 KiB
Nix
66 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, datamodeldict
|
|
, fetchFromGitHub
|
|
, matplotlib
|
|
, numericalunits
|
|
, numpy
|
|
, pandas
|
|
, potentials
|
|
, pytest
|
|
, pythonOlder
|
|
, scipy
|
|
, toolz
|
|
, xmltodict
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.4.2";
|
|
pname = "atomman";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "usnistgov";
|
|
repo = "atomman";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Kq4mDykYf74ylWw2golxc81CYKGokXro64YUsFctLmk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cython
|
|
datamodeldict
|
|
matplotlib
|
|
numericalunits
|
|
numpy
|
|
pandas
|
|
potentials
|
|
scipy
|
|
toolz
|
|
xmltodict
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest
|
|
];
|
|
|
|
checkPhase = ''
|
|
# pytestCheckHook doesn't work
|
|
py.test tests -k "not test_rootdir and not test_version \
|
|
and not test_atomic_mass and not imageflags"
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"atomman"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Atomistic Manipulation Toolkit";
|
|
homepage = "https://github.com/usnistgov/atomman/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|