nixpkgs/pkgs/development/python-modules/atomman/default.nix

67 lines
1.1 KiB
Nix
Raw Normal View History

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