depot/third_party/nixpkgs/pkgs/development/python-modules/importlab/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
830 B
Nix

{
stdenv,
lib,
buildPythonPackage,
fetchPypi,
networkx,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "importlab";
version = "0.8.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-s4k4U7H26wJ9pQnDtA5nh+ld1mtLZvGzYTqtd1VuFGU=";
};
propagatedBuildInputs = [ networkx ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ "tests/test_parsepy.py" ];
# Test fails on darwin filesystem
disabledTests = [ "testIsDir" ];
pythonImportsCheck = [ "importlab" ];
meta = with lib; {
description = "A library that automatically infers dependencies for Python files";
mainProgram = "importlab";
homepage = "https://github.com/google/importlab";
license = licenses.mit;
maintainers = with maintainers; [ sei40kr ];
};
}