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