1{ lib
2, buildPythonPackage
3, fetchPypi
4, twisted
5, passlib
6, pyparsing
7, service-identity
8, six
9, zope_interface
10, pythonOlder
11, python
12}:
13
14buildPythonPackage rec {
15 pname = "ldaptor";
16 version = "21.2.0";
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 ] ++ twisted.optional-dependencies.tls;
31
32 nativeCheckInputs = [
33 twisted
34 ];
35
36 # Test creates an excessive amount of temporary files (order of millions).
37 # Cleaning up those files already took over 15 hours already on my zfs
38 # filesystem and is not finished yet.
39 doCheck = false;
40
41 checkPhase = ''
42 trial -j$NIX_BUILD_CORES ldaptor
43 '';
44
45 meta = with lib; {
46 description = "A Pure-Python Twisted library for LDAP";
47 homepage = "https://github.com/twisted/ldaptor";
48 license = licenses.mit;
49 maintainers = with maintainers; [ ];
50 };
51}