about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/importlab/default.nix
blob: 2d7fddb9e5db1be48c0f8871c36075db7547660a (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
36
{ 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";
    homepage = "https://github.com/google/importlab";
    license = licenses.mit;
    maintainers = with maintainers; [ sei40kr ];
  };
}