2018-07-21 02:44:44 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2019-04-05 19:19:42 +02:00
|
|
|
, pbr, ldap, prettytable, fixtures, testresources, testtools }:
|
2018-03-02 02:03:28 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "ldappool-${version}";
|
2019-04-16 19:15:37 +02:00
|
|
|
version = "2.4.1";
|
2018-03-02 02:03:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "ldappool";
|
|
|
|
inherit version;
|
2019-04-16 19:15:37 +02:00
|
|
|
sha256 = "23edef09cba4b1ae764f1ddada828d8e39d72cf32a457e599f5a70064310ea00";
|
2018-03-02 02:03:28 +01:00
|
|
|
};
|
|
|
|
|
2019-04-05 19:19:42 +02:00
|
|
|
postPatch = ''
|
|
|
|
# Tests run without most of the dependencies
|
|
|
|
echo "" > test-requirements.txt
|
|
|
|
'';
|
|
|
|
|
2018-03-02 02:19:38 +01:00
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
2019-04-05 19:19:42 +02:00
|
|
|
propagatedBuildInputs = [ ldap prettytable ];
|
2018-03-02 02:19:38 +01:00
|
|
|
|
|
|
|
checkInputs = [ fixtures testresources testtools ];
|
2018-03-02 02:03:28 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-03-02 02:19:38 +01:00
|
|
|
description = "A simple connector pool for python-ldap";
|
|
|
|
homepage = https://git.openstack.org/cgit/openstack/ldappool;
|
|
|
|
license = licenses.mpl20;
|
2018-03-02 02:03:28 +01:00
|
|
|
};
|
|
|
|
}
|