diff --git a/pkgs/tools/security/ldeep/default.nix b/pkgs/tools/security/ldeep/default.nix index 82d0456a05b7..008ff90ee60a 100644 --- a/pkgs/tools/security/ldeep/default.nix +++ b/pkgs/tools/security/ldeep/default.nix @@ -1,37 +1,42 @@ { lib -, buildPythonApplication -, fetchPypi -, commandparse -, dnspython -, ldap3 -, termcolor -, tqdm +, fetchFromGitHub +, python3 }: -buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "ldeep"; - version = "1.0.11"; + version = "1.0.34"; + format = "setuptools"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-MYVC8fxLW85n8uZVMhb2Zml1lQ8vW9gw/eRLcmemQx4="; + src = fetchFromGitHub { + owner = "franc-pentest"; + repo = "ldeep"; + rev = "refs/tags/${version}"; + hash = "sha256-Gskbxfqp2HqI6rCEiuT0lgHQtD0rZjtLgH3idEkfmjc="; }; - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ commandparse + cryptography dnspython ldap3 + pycryptodomex + six termcolor tqdm ]; # no tests are present doCheck = false; - pythonImportsCheck = [ "ldeep" ]; + + pythonImportsCheck = [ + "ldeep" + ]; meta = with lib; { description = "In-depth LDAP enumeration utility"; homepage = "https://github.com/franc-pentest/ldeep"; + changelog = "https://github.com/franc-pentest/ldeep/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6ef2e8020498..71f527db0e5d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10315,7 +10315,7 @@ with pkgs; ldapvi = callPackage ../tools/misc/ldapvi { }; - ldeep = python3Packages.callPackage ../tools/security/ldeep { }; + ldeep = callPackage ../tools/security/ldeep { }; ldns = callPackage ../development/libraries/ldns { };