From fb8dcaef04c61ba3a3cc8e52ed0d42a3394ebcc7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Mar 2024 13:06:29 +0100 Subject: [PATCH] hekatomb: init at 1.5.14-unstable-2024-02-14 Tool to connect to LDAP directory to retrieve informations https://github.com/ProcessusT/HEKATOMB --- pkgs/by-name/he/hekatomb/package.nix | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/he/hekatomb/package.nix diff --git a/pkgs/by-name/he/hekatomb/package.nix b/pkgs/by-name/he/hekatomb/package.nix new file mode 100644 index 000000000000..1d9df3a03215 --- /dev/null +++ b/pkgs/by-name/he/hekatomb/package.nix @@ -0,0 +1,49 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "hekatomb"; + version = "1.5.14-unstable-2024-02-14"; + pyproject = true; + + src = fetchFromGitHub { + owner = "ProcessusT"; + repo = "HEKATOMB"; + rev = "8cd372fd5d93e8b43c2cbe2ab2cada635f00e9dd"; + hash = "sha256-2juP2SuCfY4z2J27BlodrsP+29BjGxKDIDOW0mmwCPY="; + }; + + pythonRelaxDeps = [ + "impacket" + ]; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + pythonRelaxDepsHook + ]; + + propagatedBuildInputs = with python3.pkgs; [ + chardet + dnspython + impacket + ldap3 + pycryptodomex + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "hekatomb" + ]; + + meta = with lib; { + description = "Tool to connect to LDAP directory to retrieve informations"; + homepage = "https://github.com/ProcessusT/HEKATOMB"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + mainProgram = "hekatomb"; + }; +}