From 030fcdee5719c8ff6852cbe6c8c531ba1d5259a3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 21 May 2023 00:03:52 +0200 Subject: [PATCH] tell-me-your-secrets: init at 2.4.2 --- .../security/tell-me-your-secrets/default.nix | 49 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/tools/security/tell-me-your-secrets/default.nix diff --git a/pkgs/tools/security/tell-me-your-secrets/default.nix b/pkgs/tools/security/tell-me-your-secrets/default.nix new file mode 100644 index 000000000000..c01308e0de6e --- /dev/null +++ b/pkgs/tools/security/tell-me-your-secrets/default.nix @@ -0,0 +1,49 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "tell-me-your-secrets"; + version = "2.4.2"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "valayDave"; + repo = "tell-me-your-secrets"; + rev = "refs/tags/v${version}"; + hash = "sha256-3ZJyL/V1dsW6F+PiEhnWpv/Pz2H9/UKSJWDgw68M/Z8="; + }; + + pythonRelaxDeps = [ + "gitignore-parser" + ]; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + pythonRelaxDepsHook + ]; + + propagatedBuildInputs = with python3.pkgs; [ + gitignore-parser + pandas + pyyaml + single-source + ]; + + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "tell_me_your_secrets" + ]; + + meta = with lib; { + description = "Tools to find secrets from various signatures"; + homepage = "https://github.com/valayDave/tell-me-your-secrets"; + changelog = "https://github.com/valayDave/tell-me-your-secrets/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b03392cf33e..7bb4a1c3df50 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39614,6 +39614,8 @@ with pkgs; tcat = callPackage ../tools/misc/tcat { }; + tell-me-your-secrets = callPackage ../tools/security/tell-me-your-secrets { }; + tellico = libsForQt5.callPackage ../applications/misc/tellico { }; termpdfpy = python3Packages.callPackage ../applications/misc/termpdf.py { };