2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pbr
|
|
|
|
, python-ldap
|
|
|
|
, prettytable
|
|
|
|
, six
|
|
|
|
, fixtures
|
|
|
|
, testresources
|
|
|
|
, testtools
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ldappool";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "3.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "ldappool";
|
|
|
|
inherit version;
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "4bb59b7d6b11407f48ee01a781267e3c8ba98d91f426806ac7208612ae087b86";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Tests run without most of the dependencies
|
|
|
|
echo "" > test-requirements.txt
|
2021-01-15 22:18:51 +00:00
|
|
|
# PrettyTable is now maintained again
|
|
|
|
substituteInPlace requirements.txt --replace "PrettyTable<0.8,>=0.7.2" "PrettyTable"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pbr ];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
propagatedBuildInputs = [ python-ldap prettytable six ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ fixtures testresources testtools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple connector pool for python-ldap";
|
2021-01-15 22:18:51 +00:00
|
|
|
homepage = "https://opendev.org/openstack/ldappool/";
|
|
|
|
license = with licenses; [ mpl11 lgpl21Plus gpl2Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|