From b7df45f169d4552bfbe2c8d307f76ea97ef59c73 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 18 Apr 2023 17:09:14 +0200 Subject: [PATCH] kube-hunter: fix version handling --- pkgs/tools/security/kube-hunter/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/security/kube-hunter/default.nix b/pkgs/tools/security/kube-hunter/default.nix index 823f3db9b432..05ee083f4d77 100644 --- a/pkgs/tools/security/kube-hunter/default.nix +++ b/pkgs/tools/security/kube-hunter/default.nix @@ -14,6 +14,8 @@ python3.pkgs.buildPythonApplication rec { sha256 = "sha256-+M8P/VSF9SKPvq+yNPjokyhggY7hzQ9qLLhkiTNbJls="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + nativeBuildInputs = with python3.pkgs; [ setuptools-scm ]; @@ -47,6 +49,11 @@ python3.pkgs.buildPythonApplication rec { "kube_hunter" ]; + disabledTests = [ + # Test is out-dated + "test_K8sCveHunter" + ]; + meta = with lib; { description = "Tool to search issues in Kubernetes clusters"; homepage = "https://github.com/aquasecurity/kube-hunter";