587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
37 lines
822 B
Nix
37 lines
822 B
Nix
{ 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";
|
|
mainProgram = "importlab";
|
|
homepage = "https://github.com/google/importlab";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sei40kr ];
|
|
};
|
|
}
|