2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2022-09-30 11:47:45 +00:00
|
|
|
, pbr, python-ldap, prettytable, 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";
|
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 ];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [ python-ldap prettytable ];
|
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
|
|
|
};
|
|
|
|
}
|