nav: init at 1.2.1 (#356071)
[NixPkgs.git] / pkgs / development / python-modules / lizard / default.nix
blobdf6ab5c4b7b311fe62226fd044d9522c8af0a8a6
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   pytestCheckHook,
7   mock,
8   jinja2,
9 }:
11 buildPythonPackage rec {
12   pname = "lizard";
13   version = "1.17.10";
14   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "terryyin";
19     repo = "lizard";
20     rev = version;
21     hash = "sha256-4jq6gXpI1hFtX7ka2c/qQ+S6vZCThKOGhQwJ2FOYItY=";
22   };
24   propagatedBuildInputs = [ jinja2 ];
26   nativeCheckInputs = [
27     pytestCheckHook
28     mock
29   ];
31   disabledTestPaths = [
32     # re.error: global flags not at the start of the expression at position 14
33     "test/test_languages/testFortran.py"
34   ];
36   pythonImportsCheck = [ "lizard" ];
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   };