python310Packages.detect-secrets: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-07-29 20:21:06 +02:00 committed by GitHub
parent 4bb98b13cf
commit aae27d675b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";