1{ lib
2, python3
3, fetchFromGitHub
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "msldapdump";
8 version = "unstable-2023-06-12";
9 format = "other";
10
11 src = fetchFromGitHub {
12 owner = "dievus";
13 repo = "msLDAPDump";
14 rev = "bdffe66be20ff844f55f69fd6d842d7f75f66f2d";
15 hash = "sha256-qH4AaebrTKYxxjXawllxgiG9fVm03zmTRv/HAyNpewg=";
16 };
17
18 propagatedBuildInputs = with python3.pkgs; [
19 colorama
20 ldap3
21 ];
22
23 dontBuild = true;
24
25 installPhase = ''
26 runHook preInstall
27
28 install -vD msLDAPDump.py $out/bin/msLDAPDump.py
29
30 makeWrapper ${python3.interpreter} $out/bin/msldapdump \
31 --set PYTHONPATH "$PYTHONPATH:$out/bin/msLDAPDump.py" \
32 --add-flags "-O $out/bin/msLDAPDump.py"
33
34 runHook postInstall
35 '';
36
37 # Project has no tests
38 doCheck = false;
39
40 meta = with lib; {
41 description = "LDAP enumeration tool";
42 homepage = "https://github.com/dievus/msLDAPDump";
43 license = licenses.agpl3Only;
44 maintainers = with maintainers; [ fab ];
45 };
46}