about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/ldappool/default.nix
blob: e22ab22d5a76ce3cdf145b203e31bd717472f0cd (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
{ lib, buildPythonPackage, fetchPypi
, pbr, ldap, prettytable, fixtures, testresources, testtools }:

buildPythonPackage rec {
  pname = "ldappool";
  version = "2.4.1";

  src = fetchPypi {
    pname = "ldappool";
    inherit version;
    sha256 = "23edef09cba4b1ae764f1ddada828d8e39d72cf32a457e599f5a70064310ea00";
  };

  postPatch = ''
    # Tests run without most of the dependencies
    echo "" > test-requirements.txt
  '';

  nativeBuildInputs = [ pbr ];

  propagatedBuildInputs = [ ldap prettytable ];

  checkInputs = [ fixtures testresources testtools ];

  meta = with lib; {
    description = "A simple connector pool for python-ldap";
    homepage = https://git.openstack.org/cgit/openstack/ldappool;
    license = licenses.mpl20;
  };
}