depot/third_party/nixpkgs/pkgs/development/python-modules/importlab/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

37 lines
822 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 ];
};
}