summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/badldap/default.nix
blob: 290c57b6e9e15ea01726aee8895e3e4ab3317640 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  asn1crypto,
  asysocks,
  badauth,
  kerbad,
  prompt-toolkit,
  tabulate,
  tqdm,
  unicrypto,
  unidns,
  wcwidth,
  winacl,
}:

buildPythonPackage {
  pname = "badldap";
  version = "0.7.1-unstable-2025-10-28";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "CravateRouge";
    repo = "badldap";
    rev = "65af61fd7daf7dc7bef9c6248553398e6f604d43"; # no tag available
    hash = "sha256-14mV+EBrpoR9suPmOYdt2ro1Gcrpj3tuVx/meaVKC2c=";
  };

  build-system = [ setuptools ];

  dependencies = [
    asn1crypto
    asysocks
    badauth
    kerbad
    prompt-toolkit
    tabulate
    tqdm
    unicrypto
    unidns
    wcwidth
    winacl
  ];

  # Module doesn't have tests
  doCheck = false;

  pythonImportsCheck = [ "badldap" ];

  meta = {
    description = "LDAP library for auditing MS AD";
    homepage = "https://github.com/CravateRouge/badldap";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}