about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ldappool/default.nix
blob: 3d56668c88149108c5a33ce8e12f0009f7284c38 (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
52
53
54
55
56
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pbr,
  python-ldap,
  prettytable,
  six,
  unittestCheckHook,
  fixtures,
  testresources,
  testtools,
}:

buildPythonPackage rec {
  pname = "ldappool";
  version = "3.0.0";
  pyproject = true;

  src = fetchPypi {
    pname = "ldappool";
    inherit version;
    hash = "sha256-S7WbfWsRQH9I7gGngSZ+PIupjZH0JoBqxyCGEq4Ie4Y=";
  };

  build-system = [
    setuptools
    pbr
  ];

  dependencies = [
    python-ldap
    prettytable
    six
  ];

  nativeCheckInputs = [
    unittestCheckHook
    fixtures
    testresources
    testtools
  ];

  pythonImportsCheck = [ "ldappool" ];

  meta = with lib; {
    description = "A simple connector pool for python-ldap";
    homepage = "https://opendev.org/openstack/ldappool/";
    license = with licenses; [
      mpl11
      lgpl21Plus
      gpl2Plus
    ];
  };
}