1{ lib
2, fetchFromGitHub
3, python3
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "ldapmonitor";
8 version = "1.4";
9 format = "other";
10
11 src = fetchFromGitHub {
12 owner = "p0dalirius";
13 repo = pname;
14 rev = "refs/tags/${version}";
15 hash = "sha256-BmTj/6dOUYfia6wO4nvkEW01MIC9TuBk4kYAsVHMsWY=";
16 };
17
18 sourceRoot = "${src.name}/python";
19
20 propagatedBuildInputs = with python3.pkgs; [
21 impacket
22 ldap3
23 python-ldap
24 ];
25
26 installPhase = ''
27 runHook preInstall
28
29 install -vD pyLDAPmonitor.py $out/bin/ldapmonitor
30
31 runHook postInstall
32 '';
33
34 meta = with lib; {
35 description = "Tool to monitor creation, deletion and changes to LDAP objects";
36 homepage = "https://github.com/p0dalirius/LDAPmonitor";
37 changelog = "https://github.com/p0dalirius/LDAPmonitor/releases/tag/${version}";
38 license = with licenses; [ gpl3Only ];
39 maintainers = with maintainers; [ fab ];
40 };
41}