From ed889141a3da9e2bda5a9b7807b84497b7b328cf Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 17 Sep 2024 10:06:40 +0200 Subject: [PATCH] tartufo: init at 5.0.1 Tool to search through git repositories for high entropy strings and secrets https://github.com/godaddy/tartufo --- pkgs/by-name/ta/tartufo/package.nix | 42 +++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/ta/tartufo/package.nix diff --git a/pkgs/by-name/ta/tartufo/package.nix b/pkgs/by-name/ta/tartufo/package.nix new file mode 100644 index 000000000000..1ee23cf2516c --- /dev/null +++ b/pkgs/by-name/ta/tartufo/package.nix @@ -0,0 +1,42 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication rec { + pname = "tartufo"; + version = "5.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "godaddy"; + repo = "tartufo"; + rev = "refs/tags/v${version}"; + hash = "sha256-mwwenmSCxnzD2DLf1a/dsQjwJ2GetMgRGj/noqWJ/E0="; + }; + + pythonRelaxDeps = [ "tomlkit" ]; + + build-system = with python3.pkgs; [ poetry-core ]; + + dependencies = with python3.pkgs; [ + cached-property + click + colorama + gitpython + pygit2 + tomlkit + ]; + + pythonImportsCheck = [ "tartufo" ]; + + meta = { + description = "Tool to search through git repositories for high entropy strings and secrets"; + homepage = "https://github.com/godaddy/tartufo"; + changelog = "https://github.com/godaddy/tartufo/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.gpl2Only; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "tartufo"; + }; +}