mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
truffleHog: init at 2.0.91
This commit adds the python3 application truffleHog, which is a stand-alone tool that scans a git repo for unencrypted passwords. This depends on a newer GitPython, which depends on a new major version of gitdb, which depends on a new major version of smmap, so I've packaged those as well in the preceding commits.
This commit is contained in:
parent
5efce7c43d
commit
3fc1694e8a
38
pkgs/tools/security/trufflehog/default.nix
Normal file
38
pkgs/tools/security/trufflehog/default.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib, pythonPackages }:
|
||||
|
||||
let
|
||||
truffleHogRegexes = pythonPackages.buildPythonPackage rec {
|
||||
pname = "truffleHogRegexes";
|
||||
version = "0.0.4";
|
||||
src = pythonPackages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "09vrscbb4h4w01gmamlzghxx6cvrqdscylrbdcnbjsd05xl7zh4z";
|
||||
};
|
||||
};
|
||||
in
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
pname = "truffleHog";
|
||||
version = "2.0.91";
|
||||
|
||||
src = pythonPackages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0r4c9ihy6wjh5cwli7lb6cr2yfvxrh7r6cgznql1src5gzlnkymx";
|
||||
};
|
||||
|
||||
# Relax overly restricted version constraint
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "GitPython ==" "GitPython >= "
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pythonPackages.GitPython truffleHogRegexes ];
|
||||
|
||||
# Test cases run git clone and require network access
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = https://github.com/dxa4481/truffleHog;
|
||||
description = "Searches through git repositories for high entropy strings and secrets, digging deep into commit history";
|
||||
license = with lib.licenses; [ gpl2 ];
|
||||
maintainers = with lib.maintainers; [ bhipple ];
|
||||
};
|
||||
}
|
@ -21119,6 +21119,8 @@ with pkgs;
|
||||
|
||||
tup = callPackage ../development/tools/build-managers/tup { };
|
||||
|
||||
trufflehog = callPackage ../tools/security/trufflehog { };
|
||||
|
||||
tvheadend = callPackage ../servers/tvheadend { };
|
||||
|
||||
ums = callPackage ../servers/ums { };
|
||||
|
Loading…
Reference in New Issue
Block a user