567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
38 lines
816 B
Nix
38 lines
816 B
Nix
{
|
|
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 = {
|
|
description = "Library that automatically infers dependencies for Python files";
|
|
mainProgram = "importlab";
|
|
homepage = "https://github.com/google/importlab";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ sei40kr ];
|
|
};
|
|
}
|