7 python3.pkgs.buildPythonApplication rec {
12 src = fetchFromGitHub {
13 owner = "bridgecrewio";
15 rev = "refs/tags/${version}";
16 hash = "sha256-Ge0SCoZeBdEKGjvPXGzsYptKBzNWrUbjLEdNxsYUlcI=";
19 patches = [ ./flake8-compat-5.x.patch ];
39 # pythonRelaxDeps doesn't work with that one
43 build-system = with python3.pkgs; [
47 nativeBuildInputs = with python3.pkgs; [
51 dependencies = with python3.pkgs; [
94 nativeCheckInputs = with python3.pkgs; [
105 export HOME=$(mktemp -d);
109 # No API key available
111 # Requires network access
113 "test_skip_mapping_default"
115 "test_file_with_class"
116 "test_dataclass_skip"
117 "test_typing_class_skip"
118 # Tests are comparing console output
123 # AssertionError: assert ['<?xml versi...
124 "test_get_cyclonedx_report"
127 disabledTestPaths = [
128 # Tests are pulling from external sources
129 # https://github.com/bridgecrewio/checkov/blob/f03a4204d291cf47e3753a02a9b8c8d805bbd1be/.github/workflows/build.yml
134 "tests/cloudformation/"
137 "tests/generic_json/"
138 "tests/generic_yaml/"
139 "tests/github_actions/"
142 "tests/sca_package_2"
144 "cdk_integration_tests/"
145 "sast_integration_tests"
146 # Performance tests have no value for us
147 "performance_tests/test_checkov_performance.py"
149 "dogfood_tests/test_checkov_dogfood.py"
152 pythonImportsCheck = [ "checkov" ];
155 chmod +x $out/bin/checkov
159 description = "Static code analysis tool for infrastructure-as-code";
160 homepage = "https://github.com/bridgecrewio/checkov";
161 changelog = "https://github.com/bridgecrewio/checkov/releases/tag/${version}";
163 Prevent cloud misconfigurations during build-time for Terraform, Cloudformation,
164 Kubernetes, Serverless framework and other infrastructure-as-code-languages.
166 license = licenses.asl20;
167 maintainers = with maintainers; [