about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ldaptor/default.nix
blob: 1b9c9f6ec8a20fb54915a73c20592f44f16c8585 (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  twisted,
  passlib,
  pyparsing,
  service-identity,
  six,
  zope-interface,
  pythonOlder,
  python,
}:

buildPythonPackage rec {
  pname = "ldaptor";
  version = "21.2.0";
  format = "setuptools";
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g=";
  };

  propagatedBuildInputs = [
    passlib
    pyparsing
    six
    twisted
    zope-interface
  ] ++ twisted.optional-dependencies.tls;

  nativeCheckInputs = [ twisted ];

  # Test creates an excessive amount of temporary files (order of millions).
  # Cleaning up those files already took over 15 hours already on my zfs
  # filesystem and is not finished yet.
  doCheck = false;

  checkPhase = ''
    trial -j$NIX_BUILD_CORES ldaptor
  '';

  meta = with lib; {
    description = "Pure-Python Twisted library for LDAP";
    homepage = "https://github.com/twisted/ldaptor";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}