504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
36 lines
791 B
Nix
36 lines
791 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";
|
|
homepage = "https://github.com/google/importlab";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sei40kr ];
|
|
};
|
|
}
|