python3Packages.detect-secrets: transform to buildPythonPackage (#134892)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Fabian Affolter 2021-08-20 23:16:05 +02:00 committed by GitHub
parent e26d07afb3
commit b0450b3978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{ lib { lib
, buildPythonApplication , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, gibberish-detector , gibberish-detector
, isPy27 , isPy27
@ -12,7 +12,7 @@
, unidiff , unidiff
}: }:
buildPythonApplication rec { buildPythonPackage rec {
pname = "detect-secrets"; pname = "detect-secrets";
version = "1.1.0"; version = "1.1.0";
disabled = isPy27; disabled = isPy27;
@ -70,6 +70,6 @@ buildPythonApplication rec {
description = "An enterprise friendly way of detecting and preventing secrets in code"; description = "An enterprise friendly way of detecting and preventing secrets in code";
homepage = "https://github.com/Yelp/detect-secrets"; homepage = "https://github.com/Yelp/detect-secrets";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.marsam ]; maintainers = with maintainers; [ marsam ];
}; };
} }

View File

@ -1476,7 +1476,7 @@ with pkgs;
deskew = callPackage ../applications/graphics/deskew { }; deskew = callPackage ../applications/graphics/deskew { };
detect-secrets = python3Packages.callPackage ../development/tools/detect-secrets { }; detect-secrets = with python3Packages; toPythonApplication detect-secrets;
dfmt = callPackage ../tools/text/dfmt { }; dfmt = callPackage ../tools/text/dfmt { };

View File

@ -1930,6 +1930,8 @@ in {
desktop-notifier = callPackage ../development/python-modules/desktop-notifier { }; desktop-notifier = callPackage ../development/python-modules/desktop-notifier { };
detect-secrets = callPackage ../development/python-modules/detect-secrets { };
devolo-home-control-api = callPackage ../development/python-modules/devolo-home-control-api { }; devolo-home-control-api = callPackage ../development/python-modules/devolo-home-control-api { };
devpi-common = callPackage ../development/python-modules/devpi-common { }; devpi-common = callPackage ../development/python-modules/devpi-common { };