3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/atomman/default.nix

40 lines
849 B
Nix
Raw Normal View History

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