1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, mock 7, jinja2 8}: 9 10buildPythonPackage rec { 11 pname = "lizard"; 12 version = "1.17.10"; 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "terryyin"; 17 repo = "lizard"; 18 rev = version; 19 hash = "sha256-4jq6gXpI1hFtX7ka2c/qQ+S6vZCThKOGhQwJ2FOYItY="; 20 }; 21 22 propagatedBuildInputs = [ jinja2 ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 mock 27 ]; 28 29 pythonImportsCheck = [ 30 "lizard" 31 ]; 32 33 meta = with lib; { 34 description = "Code analyzer without caring the C/C++ header files"; 35 homepage = "http://www.lizard.ws"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ jpetrucciani ]; 38 }; 39} 40