2020-05-15 21:57:56 +00:00
|
|
|
{ lib, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2020-05-15 21:57:56 +00:00
|
|
|
truffleHogRegexes = python3Packages.buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "truffleHogRegexes";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "0.0.7";
|
|
|
|
src = python3Packages.fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "b81dfc60c86c1e353f436a0e201fd88edb72d5a574615a7858485c59edf32405";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2020-05-15 21:57:56 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "truffleHog";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "2.1.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
src = python3Packages.fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "53619f0c5be082abd377f987291ace80bc3b88f864972b1a30494780980f769e";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Relax overly restricted version constraint
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "GitPython ==" "GitPython >= "
|
|
|
|
'';
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
propagatedBuildInputs = [ python3Packages.GitPython truffleHogRegexes ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|