3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/atomman/default.nix
2021-12-07 23:38:36 -08: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.3";
pname = "atomman";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "usnistgov";
repo = "atomman";
rev = "v${version}";
sha256 = "sha256-is47O59Pjrh9tPC1Y2+DVVcHbxmcjUOFOVGnNHuURoM=";
};
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 ];
};
}