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

40 lines
841 B
Nix
Raw Permalink Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, cython
2018-10-10 22:13:56 +00:00
, datamodeldict
, matplotlib
, numericalunits
, numpy
, pandas
2018-10-10 22:13:56 +00:00
, pytest
, scipy
, toolz
, xmltodict
2018-10-10 22:13:56 +00:00
}:
buildPythonPackage rec {
version = "1.3.0";
2018-10-10 22:13:56 +00:00
pname = "atomman";
disabled = isPy27;
2018-10-10 22:13:56 +00:00
src = fetchFromGitHub {
owner = "usnistgov";
repo = "atomman";
rev = "v${version}";
sha256 = "09pfykd96wmw00s3kgabghykjn8b4yjml4ybpi7kwy7ygdmzcx51";
2018-10-10 22:13:56 +00:00
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ xmltodict datamodeldict numpy matplotlib scipy pandas cython numericalunits toolz ];
2018-10-10 22:13:56 +00:00
checkPhase = ''
py.test tests -k 'not test_atomic'
2018-10-10 22:13:56 +00:00
'';
meta = with lib; {
homepage = "https://github.com/usnistgov/atomman/";
2018-10-10 22:13:56 +00:00
description = "Atomistic Manipulation Toolkit";
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
};
}