From aae27d675b19ac1331e9939018c5ae8d08b6f9f0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Jul 2022 20:21:06 +0200 Subject: [PATCH] python310Packages.detect-secrets: disable on older Python releases --- .../python-modules/detect-secrets/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/detect-secrets/default.nix b/pkgs/development/python-modules/detect-secrets/default.nix index 9a69c8f48697..a46c445be944 100644 --- a/pkgs/development/python-modules/detect-secrets/default.nix +++ b/pkgs/development/python-modules/detect-secrets/default.nix @@ -2,11 +2,11 @@ , buildPythonPackage , fetchFromGitHub , gibberish-detector -, isPy27 , mock , pkgs , pyahocorasick , pytestCheckHook +, pythonOlder , pyyaml , requests , responses @@ -16,7 +16,9 @@ buildPythonPackage rec { pname = "detect-secrets"; version = "1.3.0"; - disabled = isPy27; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Yelp"; @@ -58,7 +60,9 @@ buildPythonPackage rec { "test_start_halfway" ]; - pythonImportsCheck = [ "detect_secrets" ]; + pythonImportsCheck = [ + "detect_secrets" + ]; meta = with lib; { description = "An enterprise friendly way of detecting and preventing secrets in code";