nixpkgs/pkgs/development/python-modules/atomman/default.nix
2021-11-16 18:01:56 +01:00

67 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 ];
};
}