depot/third_party/nixpkgs/pkgs/development/python-modules/atomman/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

39 lines
841 B
Nix

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