depot/third_party/nixpkgs/pkgs/development/python-modules/importlab/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
828 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 = "Library that automatically infers dependencies for Python files";
mainProgram = "importlab";
homepage = "https://github.com/google/importlab";
license = licenses.mit;
maintainers = with maintainers; [ sei40kr ];
};
}