2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
mock,
|
|
|
|
jinja2,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lizard";
|
|
|
|
version = "1.17.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-08-21 13:32:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "terryyin";
|
|
|
|
repo = "lizard";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-4jq6gXpI1hFtX7ka2c/qQ+S6vZCThKOGhQwJ2FOYItY=";
|
2022-08-21 13:32:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ jinja2 ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# re.error: global flags not at the start of the expression at position 14
|
|
|
|
"test/test_languages/testFortran.py"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "lizard" ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/terryyin/lizard/blob/${version}/CHANGELOG.md";
|
2022-08-21 13:32:41 +00:00
|
|
|
description = "Code analyzer without caring the C/C++ header files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "lizard";
|
2024-01-13 08:15:51 +00:00
|
|
|
downloadPage = "https://github.com/terryyin/lizard";
|
2022-08-21 13:32:41 +00:00
|
|
|
homepage = "http://www.lizard.ws";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jpetrucciani ];
|
|
|
|
};
|
|
|
|
}
|