1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 networkx,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "importlab";
11 version = "0.8.1";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-s4k4U7H26wJ9pQnDtA5nh+ld1mtLZvGzYTqtd1VuFGU=";
17 };
18
19 propagatedBuildInputs = [ networkx ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 disabledTestPaths = [ "tests/test_parsepy.py" ];
24
25 # Test fails on darwin filesystem
26 disabledTests = [ "testIsDir" ];
27
28 pythonImportsCheck = [ "importlab" ];
29
30 meta = with lib; {
31 description = "Library that automatically infers dependencies for Python files";
32 mainProgram = "importlab";
33 homepage = "https://github.com/google/importlab";
34 license = licenses.mit;
35 maintainers = with maintainers; [ sei40kr ];
36 };
37}