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