6 py = python3.override {
7 packageOverrides = self: super: {
9 dpath = super.dpath.overridePythonAttrs (oldAttrs: rec {
11 src = oldAttrs.src.override {
13 sha256 = "06rn91n2izw7czncgql71w7acsa8wwni51njw0c6s8w4xas1arj9";
18 jsonschema = super.jsonschema.overridePythonAttrs (oldAttrs: rec {
20 src = oldAttrs.src.override {
22 sha256 = "sha256-yKhbKNN3zHc35G4tnytPRO48Dh3qxr9G3e/HGH0weXo=";
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
33 buildPythonApplication rec {
36 format = "setuptools";
38 src = fetchFromGitHub {
39 owner = "bridgecrewio";
42 hash = "sha256-dXpgm9S++jtBhuzX9db8Pm5LF6Qb4isXx5uyOGdWGUc=";
45 nativeBuildInputs = with py.pkgs; [
50 propagatedBuildInputs = with py.pkgs; [
88 checkInputs = with py.pkgs; [
104 export HOME=$(mktemp -d);
108 # No API key available
110 # Requires network access
112 # Will probably be fixed in one of the next releases
113 "test_valid_cyclonedx_bom"
114 "test_record_relative_path_with"
115 "test_record_relative_path_with_relative_dir"
116 # Requires prettytable release which is only available in staging
117 "test_skipped_check_exists"
118 # AssertionError: 0 not greater than 0
119 "test_skip_mapping_default"
121 "test_SQLServerAuditingEnabled"
124 disabledTestPaths = [
125 # Tests are pulling from external sources
126 # https://github.com/bridgecrewio/checkov/blob/f03a4204d291cf47e3753a02a9b8c8d805bbd1be/.github/workflows/build.yml
129 # Performance tests have no value for us
130 "performance_tests/test_checkov_performance.py"
131 # Requires prettytable release which is only available in staging
133 "tests/test_runner_filter.py"
136 pythonImportsCheck = [
141 description = "Static code analysis tool for infrastructure-as-code";
142 homepage = "https://github.com/bridgecrewio/checkov";
144 Prevent cloud misconfigurations during build-time for Terraform, Cloudformation,
145 Kubernetes, Serverless framework and other infrastructure-as-code-languages.
147 license = licenses.asl20;
148 maintainers = with maintainers; [ anhdle14 fab ];