summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/ldapdomaindump/default.nix
blob: 03b080a617482c983737a0820f1ceb1933c041d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  dnspython,
  ldap3,
  pycryptodome,
  setuptools,
}:

buildPythonPackage rec {
  pname = "ldapdomaindump";
  version = "0.10.0-unstable-2025-04-06";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "dirkjanm";
    repo = "ldapdomaindump";
    rev = "d559463eb29857f2660bf3867bfb9f8610d1ddb1";
    hash = "sha256-gb/3gtXPQ86bkvunvj1wonxYAFHKkCh2H5dmSNTgz5g=";
  };

  build-system = [ setuptools ];

  dependencies = [
    dnspython
    ldap3
    pycryptodome
  ];

  # Tests require LDAP server
  doCheck = false;

  pythonImportsCheck = [ "ldapdomaindump" ];

  meta = {
    description = "Active Directory information dumper via LDAP";
    homepage = "https://github.com/dirkjanm/ldapdomaindump/";
    changelog = "https://github.com/dirkjanm/ldapdomaindump/releases/tag/${src.rev}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}