nixpkgs/pkgs/tools/security/trufflehog/default.nix

44 lines
1.3 KiB
Nix
Raw Normal View History

2020-05-06 01:10:57 +01:00
{ lib, python3Packages }:
let
2020-05-06 01:10:57 +01:00
truffleHogRegexes = python3Packages.buildPythonPackage rec {
pname = "truffleHogRegexes";
2020-05-06 01:10:57 +01:00
<<<<<<< HEAD
version = "0.0.4";
src = pythonPackages.fetchPypi {
2020-05-06 01:10:57 +01:00
=======
version = "0.0.7";
src = python3Packages.fetchPypi {
>>>>>>> 2c28266fcef... trufflehog: 2.0.97 -> 2.1.11
inherit pname version;
sha256 = "09vrscbb4h4w01gmamlzghxx6cvrqdscylrbdcnbjsd05xl7zh4z";
};
};
in
2020-05-06 01:10:57 +01:00
python3Packages.buildPythonApplication rec {
pname = "truffleHog";
version = "2.0.97";
2020-05-06 01:10:57 +01:00
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "034kpv1p4m90286slvc6d4mlrzaf0b5jbd4qaj87hj65wbpcpg8r";
};
# Relax overly restricted version constraint
postPatch = ''
substituteInPlace setup.py --replace "GitPython ==" "GitPython >= "
'';
2020-05-06 01:10:57 +01:00
propagatedBuildInputs = [ python3Packages.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 ];
};
}