mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
67 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
}
|