From 340d0ca38ef4ab35fbcb4b4974b4ec24bcfd36fe Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Tue, 21 Jul 2026 14:08:53 +0100 Subject: [PATCH] python3Packages.detect-secrets: disable tests for optional dependencies --- .../python-modules/detect-secrets/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/detect-secrets/default.nix b/pkgs/development/python-modules/detect-secrets/default.nix index 2b5e7229b48e..9a705caca43b 100644 --- a/pkgs/development/python-modules/detect-secrets/default.nix +++ b/pkgs/development/python-modules/detect-secrets/default.nix @@ -65,8 +65,20 @@ buildPythonPackage rec { "test_make_decisions" "test_saves_to_baseline" "test_start_halfway" + ] + ++ lib.optionals (!withGibberish) [ + "test_load_and_output" + "test_quit_if_baseline_is_changed_but_not_staged" ]; + disabledTestPaths = + lib.optionals (!withGibberish) [ + "tests/filters/gibberish_filter_test.py" + ] + ++ lib.optionals (!withWordList) [ + "tests/filters/wordlist_filter_test.py" + ]; + pythonImportsCheck = [ "detect_secrets" ]; meta = {