1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7 unicrypto,
8 asyauth,
9 asysocks,
10 asn1crypto,
11 winacl,
12 prompt-toolkit,
13 tqdm,
14 wcwidth,
15 tabulate,
16}:
17
18buildPythonPackage rec {
19 pname = "msldap";
20 version = "0.5.15";
21 pyproject = true;
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchPypi {
26 inherit pname version;
27 hash = "sha256-uAJKLAVZFY7EB8tjFyAezINicki6ruzuXf1EGcp3Pj0=";
28 };
29
30 build-system = [ setuptools ];
31
32 dependencies = [
33 unicrypto
34 asyauth
35 asysocks
36 asn1crypto
37 winacl
38 prompt-toolkit
39 tqdm
40 wcwidth
41 tabulate
42 ];
43
44 # Project doesn't have tests
45 doCheck = false;
46
47 pythonImportsCheck = [ "msldap" ];
48
49 meta = with lib; {
50 description = "Python LDAP library for auditing MS AD";
51 homepage = "https://github.com/skelsec/msldap";
52 changelog = "https://github.com/skelsec/msldap/releases/tag/${version}";
53 license = with licenses; [ mit ];
54 maintainers = with maintainers; [ fab ];
55 };
56}