From b635bc753dd5e644852b77308f7d1608c58795b8 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 9 May 2025 00:04:43 +0200 Subject: [PATCH] deepsecrets: modernize, enable tests --- pkgs/tools/security/deepsecrets/default.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/security/deepsecrets/default.nix b/pkgs/tools/security/deepsecrets/default.nix index 6d77a683039d..1238d51b23bc 100644 --- a/pkgs/tools/security/deepsecrets/default.nix +++ b/pkgs/tools/security/deepsecrets/default.nix @@ -22,11 +22,11 @@ python3.pkgs.buildPythonApplication rec { "mmh3" ]; - nativeBuildInputs = with python3.pkgs; [ + build-system = with python3.pkgs; [ poetry-core ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ dotwiz mmh3 ordered-set @@ -40,12 +40,23 @@ python3.pkgs.buildPythonApplication rec { "deepsecrets" ]; - meta = with lib; { + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + disabledTests = [ + # assumes package is built in /app (docker?), and not /build/${src.name} (nix sandbox) + "test_1_cli" + "test_config" + "test_basic_info" + ]; + + meta = { description = "Secrets scanner that understands code"; mainProgram = "deepsecrets"; homepage = "https://github.com/avito-tech/deepsecrets"; changelog = "https://github.com/avito-tech/deepsecrets/releases/tag/v${version}"; - license = licenses.mit; - maintainers = with maintainers; [ fab ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; }; }