2018-07-21 01:44:44 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2019-04-05 18:19:42 +01:00
|
|
|
, pbr, ldap, prettytable, fixtures, testresources, testtools }:
|
2018-03-02 01:03:28 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ldappool";
|
2019-04-16 18:15:37 +01:00
|
|
|
version = "2.4.1";
|
2018-03-02 01:03:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "ldappool";
|
|
|
|
inherit version;
|
2019-04-16 18:15:37 +01:00
|
|
|
sha256 = "23edef09cba4b1ae764f1ddada828d8e39d72cf32a457e599f5a70064310ea00";
|
2018-03-02 01:03:28 +00:00
|
|
|
};
|
|
|
|
|
2019-04-05 18:19:42 +01:00
|
|
|
postPatch = ''
|
|
|
|
# Tests run without most of the dependencies
|
|
|
|
echo "" > test-requirements.txt
|
2021-01-09 11:20:10 +00:00
|
|
|
# PrettyTable is now maintained again
|
|
|
|
substituteInPlace requirements.txt --replace "PrettyTable<0.8,>=0.7.2" "PrettyTable"
|
2019-04-05 18:19:42 +01:00
|
|
|
'';
|
|
|
|
|
2018-03-02 01:19:38 +00:00
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
2019-04-05 18:19:42 +01:00
|
|
|
propagatedBuildInputs = [ ldap prettytable ];
|
2018-03-02 01:19:38 +00:00
|
|
|
|
|
|
|
checkInputs = [ fixtures testresources testtools ];
|
2018-03-02 01:03:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-03-02 01:19:38 +00:00
|
|
|
description = "A simple connector pool for python-ldap";
|
2021-01-09 11:20:10 +00:00
|
|
|
homepage = "https://opendev.org/openstack/ldappool/";
|
|
|
|
license = with licenses; [ mpl11 lgpl21Plus gpl2Plus ];
|
2018-03-02 01:03:28 +00:00
|
|
|
};
|
|
|
|
}
|