2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
, jinja2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lizard";
|
|
|
|
version = "1.17.10";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terryyin";
|
|
|
|
repo = "lizard";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-4jq6gXpI1hFtX7ka2c/qQ+S6vZCThKOGhQwJ2FOYItY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"lizard"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Code analyzer without caring the C/C++ header files";
|
|
|
|
homepage = "http://www.lizard.ws";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jpetrucciani ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|