{ lib , fetchFromGitHub , python3 }: python3.pkgs.buildPythonApplication rec { pname = "checkov"; version = "3.0.37"; pyproject = true; src = fetchFromGitHub { owner = "bridgecrewio"; repo = "checkov"; rev = "refs/tags/${version}"; hash = "sha256-cRc5mBMTh5HCqq5hKfvJmYROs74ZiWjX17cgQv7ub+I="; }; patches = [ ./flake8-compat-5.x.patch ]; pythonRelaxDeps = [ "bc-detect-secrets" "bc-python-hcl2" "dpath" "license-expression" "networkx" "pycep-parser" ]; nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook setuptools-scm ]; propagatedBuildInputs = with python3.pkgs; [ aiodns aiohttp aiomultiprocess argcomplete bc-detect-secrets bc-jsonpath-ng bc-python-hcl2 boto3 cachetools charset-normalizer cloudsplaining colorama configargparse cyclonedx-python-lib docker dockerfile-parse dpath flake8 gitpython igraph jmespath jsonschema junit-xml license-expression networkx openai packaging policyuniverse prettytable pycep-parser pyyaml pydantic rustworkx semantic-version spdx-tools tabulate termcolor tqdm typing-extensions update_checker ]; nativeCheckInputs = with python3.pkgs; [ aioresponses mock pytest-asyncio pytest-mock pytest-xdist pytestCheckHook responses ]; preCheck = '' export HOME=$(mktemp -d); ''; disabledTests = [ # No API key available "api_key" # Requires network access "TestSarifReport" "test_skip_mapping_default" # Flake8 test "test_file_with_class" "test_dataclass_skip" "test_typing_class_skip" # Tests are comparing console output "cli" "console" # Assertion error "test_runner" # AssertionError: assert ['