7 python3.pkgs.buildPythonApplication rec {
12 src = fetchFromGitHub {
13 owner = "bridgecrewio";
15 rev = "refs/tags/${version}";
16 hash = "sha256-UY3EXGOo9xXU/Iqzwk2+pcbtMYQwuEU9G3uETWL3o2o=";
19 patches = [ ./flake8-compat-5.x.patch ];
27 "cyclonedx-python-lib"
44 # pythonRelaxDeps doesn't work with that one
48 build-system = with python3.pkgs; [ setuptools-scm ];
50 dependencies = with python3.pkgs; [
93 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 "test_same_resources_in_report_and_coordinator"
124 # AssertionError: assert ['<?xml versi...
125 "test_get_cyclonedx_report"
126 # Test fails on Hydra
127 "test_sast_js_filtered_files_by_ts"
129 "test_non_multiline_pair_time_limit_creating_report"
132 disabledTestPaths = [
133 # Tests are pulling from external sources
134 # https://github.com/bridgecrewio/checkov/blob/f03a4204d291cf47e3753a02a9b8c8d805bbd1be/.github/workflows/build.yml
139 "tests/cloudformation/"
142 "tests/generic_json/"
143 "tests/generic_yaml/"
144 "tests/github_actions/"
147 "tests/sca_package_2"
149 "cdk_integration_tests/"
150 "sast_integration_tests"
151 # Performance tests have no value for us
152 "performance_tests/test_checkov_performance.py"
154 "dogfood_tests/test_checkov_dogfood.py"
157 pythonImportsCheck = [ "checkov" ];
160 chmod +x $out/bin/checkov
164 description = "Static code analysis tool for infrastructure-as-code";
165 homepage = "https://github.com/bridgecrewio/checkov";
166 changelog = "https://github.com/bridgecrewio/checkov/releases/tag/${version}";
168 Prevent cloud misconfigurations during build-time for Terraform, Cloudformation,
169 Kubernetes, Serverless framework and other infrastructure-as-code-languages.
171 license = licenses.asl20;
172 maintainers = with maintainers; [