1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 mock,
8 jinja2,
9}:
10
11buildPythonPackage rec {
12 pname = "lizard";
13 version = "1.17.10";
14 format = "setuptools";
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "terryyin";
19 repo = "lizard";
20 rev = version;
21 hash = "sha256-4jq6gXpI1hFtX7ka2c/qQ+S6vZCThKOGhQwJ2FOYItY=";
22 };
23
24 propagatedBuildInputs = [ jinja2 ];
25
26 nativeCheckInputs = [
27 pytestCheckHook
28 mock
29 ];
30
31 disabledTestPaths = [
32 # re.error: global flags not at the start of the expression at position 14
33 "test/test_languages/testFortran.py"
34 ];
35
36 pythonImportsCheck = [ "lizard" ];
37
38 meta = with lib; {
39 changelog = "https://github.com/terryyin/lizard/blob/${version}/CHANGELOG.md";
40 description = "Code analyzer without caring the C/C++ header files";
41 mainProgram = "lizard";
42 downloadPage = "https://github.com/terryyin/lizard";
43 homepage = "http://www.lizard.ws";
44 license = licenses.mit;
45 maintainers = with maintainers; [ jpetrucciani ];
46 };
47}