2020-05-06 01:10:57 +01:00
|
|
|
{ lib, python3Packages }:
|
2018-05-12 15:59:54 +01:00
|
|
|
|
|
|
|
let
|
2020-05-06 01:10:57 +01:00
|
|
|
truffleHogRegexes = python3Packages.buildPythonPackage rec {
|
2018-05-12 15:59:54 +01:00
|
|
|
pname = "truffleHogRegexes";
|
2020-05-06 01:10:57 +01:00
|
|
|
version = "0.0.7";
|
|
|
|
src = python3Packages.fetchPypi {
|
2018-05-12 15:59:54 +01:00
|
|
|
inherit pname version;
|
2020-05-06 02:16:57 +01:00
|
|
|
sha256 = "b81dfc60c86c1e353f436a0e201fd88edb72d5a574615a7858485c59edf32405";
|
2018-05-12 15:59:54 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2020-05-06 01:10:57 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-05-12 15:59:54 +01:00
|
|
|
pname = "truffleHog";
|
2021-11-16 21:18:45 +00:00
|
|
|
version = "2.2.1";
|
2018-05-12 15:59:54 +01:00
|
|
|
|
2020-05-06 01:10:57 +01:00
|
|
|
src = python3Packages.fetchPypi {
|
2018-05-12 15:59:54 +01:00
|
|
|
inherit pname version;
|
2021-11-16 21:18:45 +00:00
|
|
|
sha256 = "sha256-fw0JyM2iqQrkL4FAXllEozJdkKWELS3eAURx5NZcceQ=";
|
2018-05-12 15:59:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Relax overly restricted version constraint
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "GitPython ==" "GitPython >= "
|
|
|
|
'';
|
|
|
|
|
2020-05-06 01:10:57 +01:00
|
|
|
propagatedBuildInputs = [ python3Packages.GitPython truffleHogRegexes ];
|
2018-05-12 15:59:54 +01:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|