zoxide: 0.9.6 -> 0.9.7 (#380745)
[NixPkgs.git] / pkgs / by-name / ad / ad-ldap-enum / package.nix
blob3b8f074eba3c04d1687f5397443476c1317d8525
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   python3,
6 }:
8 stdenvNoCC.mkDerivation {
9   pname = "ad-ldap-enum";
10   version = "0-unstable-2023-02-10";
11   src = fetchFromGitHub {
12     owner = "CroweCybersecurity";
13     repo = "ad-ldap-enum";
14     rev = "60bc5bb111e2708d4bc2157f9ae3d5e0d06ece75";
15     hash = "sha256-b77yWmZGyOSQSwnRhGqo501jO6XYd+qpx1pb+zkduVI=";
16   };
18   buildInputs = [
19     (python3.withPackages (
20       ps: with ps; [
21         argcomplete
22         ldap3
23         openpyxl
24       ]
25     ))
26   ];
28   installPhase = ''
29     runHook preInstall
31     install -Dm555 ad-ldap-enum.py $out/bin/ad-ldap-enum
33     runHook postInstall
34   '';
36   fixupPhase = ''
37     runHook preFixup
39     patchShebangs $out/bin/ad-ldap-enum
41     runHook postFixup
42   '';
44   meta = with lib; {
45     description = "LDAP based Active Directory user and group enumeration tool";
46     homepage = "https://github.com/CroweCybersecurity/ad-ldap-enum";
47     license = licenses.mit;
48     maintainers = with maintainers; [ h7x4 ];
49     platforms = python3.meta.platforms;
50     mainProgram = "ad-ldap-enum";
51   };