2018-05-12 15:59:54 +01:00
|
|
|
{ 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";
|
2018-10-26 07:54:28 +01:00
|
|
|
version = "2.0.97";
|
2018-05-12 15:59:54 +01:00
|
|
|
|
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-26 07:54:28 +01:00
|
|
|
sha256 = "034kpv1p4m90286slvc6d4mlrzaf0b5jbd4qaj87hj65wbpcpg8r";
|
2018-05-12 15:59:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# 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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dxa4481/truffleHog";
|
2018-05-12 15:59:54 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|