about summary refs log tree commit diff
path: root/pkgs/development/python-modules/importlab/default.nix
blob: 5b572e50f1cb0921e2a6cce017f16342e0f7fc9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, networkx
, pytestCheckHook
}:

buildPythonPackage {
  pname = "importlab";
  version = "0.7";

  src = fetchFromGitHub {
    owner = "google";
    repo = "importlab";
    rev = "676d17cd41ac68de6ebb48fb71780ad6110c4ae3";
    hash = "sha256-O8y1c65NQ+19BnGnUnWrA0jYUqF+726CFAcWzHFOiHE=";
  };

  propagatedBuildInputs = [ networkx ];

  nativeCheckInputs = [ pytestCheckHook ];

  disabledTestPaths = [ "tests/test_parsepy.py" ];

  pythonImportsCheck = [ "importlab" ];

  meta = with lib; {
    broken = stdenv.isDarwin;
    description = "A library that automatically infers dependencies for Python files";
    homepage = "https://github.com/google/importlab";
    license = licenses.mit;
    maintainers = with maintainers; [ sei40kr ];
  };
}