2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, networkx
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "importlab";
|
|
|
|
version = "0.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "importlab";
|
|
|
|
rev = "676d17cd41ac68de6ebb48fb71780ad6110c4ae3";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-O8y1c65NQ+19BnGnUnWrA0jYUqF+726CFAcWzHFOiHE=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ networkx ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
disabledTestPaths = [ "tests/test_parsepy.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "importlab" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "A library that automatically infers dependencies for Python files";
|
|
|
|
homepage = "https://github.com/google/importlab";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sei40kr ];
|
|
|
|
};
|
|
|
|
}
|