1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 twisted,
6 passlib,
7 pyparsing,
8 six,
9 zope-interface,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "ldaptor";
15 version = "21.2.0";
16 format = "setuptools";
17 disabled = pythonOlder "3.6";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g=";
22 };
23
24 propagatedBuildInputs = [
25 passlib
26 pyparsing
27 six
28 twisted
29 zope-interface
30 ]
31 ++ twisted.optional-dependencies.tls;
32
33 nativeCheckInputs = [ twisted ];
34
35 # Test creates an excessive amount of temporary files (order of millions).
36 # Cleaning up those files already took over 15 hours already on my zfs
37 # filesystem and is not finished yet.
38 doCheck = false;
39
40 checkPhase = ''
41 trial -j$NIX_BUILD_CORES ldaptor
42 '';
43
44 meta = with lib; {
45 description = "Pure-Python Twisted library for LDAP";
46 homepage = "https://github.com/twisted/ldaptor";
47 license = licenses.mit;
48 maintainers = [ ];
49 };
50}