From ea3496116dded96fc7780cf5d99468f3990cb5f0 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 27 Feb 2026 08:02:48 -0800 Subject: [PATCH 1/3] checkov: fix build failure by relaxing the aiodns requirement aiodns bumped its major version because it now requires pycares >= 5.0.0 (which nix has), not because of any other breaking changes. --- pkgs/by-name/ch/checkov/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/ch/checkov/package.nix b/pkgs/by-name/ch/checkov/package.nix index 45ecb9a2fb3f..012c72121da4 100644 --- a/pkgs/by-name/ch/checkov/package.nix +++ b/pkgs/by-name/ch/checkov/package.nix @@ -48,6 +48,7 @@ python3.pkgs.buildPythonApplication rec { }; pythonRelaxDeps = [ + "aiodns" # breaking change is that it requires pycares >= 5.0.0, which is fine. "asteval" "bc-detect-secrets" "bc-python-hcl2" From 4a41d95d2189fc5a135e8971a4bf74e1ab61573d Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 27 Feb 2026 08:04:01 -0800 Subject: [PATCH 2/3] checkov: cleanup package definition a bit 1. Use `finalAttrs` instead of a recursive attribute set. 2. Don't bring all python packages into scope. --- pkgs/by-name/ch/checkov/package.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ch/checkov/package.nix b/pkgs/by-name/ch/checkov/package.nix index 012c72121da4..0130dfd0578c 100644 --- a/pkgs/by-name/ch/checkov/package.nix +++ b/pkgs/by-name/ch/checkov/package.nix @@ -33,9 +33,7 @@ let }; }; in -with py.pkgs; - -python3.pkgs.buildPythonApplication rec { +python3.pkgs.buildPythonApplication (finalAttrs: { pname = "checkov"; version = "3.2.504"; pyproject = true; @@ -43,7 +41,7 @@ python3.pkgs.buildPythonApplication rec { src = fetchFromGitHub { owner = "bridgecrewio"; repo = "checkov"; - tag = version; + tag = finalAttrs.version; hash = "sha256-w6U8XW/hSPy/WJy4a6N41Hu+i9OVqiwI5buAE2uFjoI="; }; @@ -195,7 +193,7 @@ python3.pkgs.buildPythonApplication rec { meta = { description = "Static code analysis tool for infrastructure-as-code"; homepage = "https://github.com/bridgecrewio/checkov"; - changelog = "https://github.com/bridgecrewio/checkov/releases/tag/${version}"; + changelog = "https://github.com/bridgecrewio/checkov/releases/tag/${finalAttrs.version}"; longDescription = '' Prevent cloud misconfigurations during build-time for Terraform, Cloudformation, Kubernetes, Serverless framework and other infrastructure-as-code-languages. @@ -207,4 +205,4 @@ python3.pkgs.buildPythonApplication rec { fab ]; }; -} +}) From d87cf21108c07329786653798b75e9fd1c69f491 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 27 Feb 2026 08:08:52 -0800 Subject: [PATCH 3/3] checkov: 3.2.504 -> 3.2.506 --- pkgs/by-name/ch/checkov/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ch/checkov/package.nix b/pkgs/by-name/ch/checkov/package.nix index 0130dfd0578c..57dfe82d415b 100644 --- a/pkgs/by-name/ch/checkov/package.nix +++ b/pkgs/by-name/ch/checkov/package.nix @@ -35,14 +35,14 @@ let in python3.pkgs.buildPythonApplication (finalAttrs: { pname = "checkov"; - version = "3.2.504"; + version = "3.2.506"; pyproject = true; src = fetchFromGitHub { owner = "bridgecrewio"; repo = "checkov"; tag = finalAttrs.version; - hash = "sha256-w6U8XW/hSPy/WJy4a6N41Hu+i9OVqiwI5buAE2uFjoI="; + hash = "sha256-E2WkVgFx7qAzmpaUOamYcBc5uAlvlnkc/NyhT569vgc="; }; pythonRelaxDeps = [