1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, networkx 6, pytestCheckHook 7}: 8 9buildPythonPackage { 10 pname = "importlab"; 11 version = "0.7"; 12 13 src = fetchFromGitHub { 14 owner = "google"; 15 repo = "importlab"; 16 rev = "676d17cd41ac68de6ebb48fb71780ad6110c4ae3"; 17 hash = "sha256-O8y1c65NQ+19BnGnUnWrA0jYUqF+726CFAcWzHFOiHE="; 18 }; 19 20 propagatedBuildInputs = [ networkx ]; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 disabledTestPaths = [ "tests/test_parsepy.py" ]; 25 26 pythonImportsCheck = [ "importlab" ]; 27 28 meta = with lib; { 29 broken = stdenv.isDarwin; 30 description = "A library that automatically infers dependencies for Python files"; 31 homepage = "https://github.com/google/importlab"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ sei40kr ]; 34 }; 35}