1{ lib 2, buildPythonPackage 3, fetchPypi 4, pbr 5, python-ldap 6, prettytable 7, six 8, fixtures 9, testresources 10, testtools 11}: 12 13buildPythonPackage rec { 14 pname = "ldappool"; 15 version = "3.0.0"; 16 17 src = fetchPypi { 18 pname = "ldappool"; 19 inherit version; 20 sha256 = "4bb59b7d6b11407f48ee01a781267e3c8ba98d91f426806ac7208612ae087b86"; 21 }; 22 23 postPatch = '' 24 # Tests run without most of the dependencies 25 echo "" > test-requirements.txt 26 # PrettyTable is now maintained again 27 substituteInPlace requirements.txt --replace "PrettyTable<0.8,>=0.7.2" "PrettyTable" 28 ''; 29 30 nativeBuildInputs = [ pbr ]; 31 32 propagatedBuildInputs = [ python-ldap prettytable six ]; 33 34 nativeCheckInputs = [ fixtures testresources testtools ]; 35 36 meta = with lib; { 37 description = "A simple connector pool for python-ldap"; 38 homepage = "https://opendev.org/openstack/ldappool/"; 39 license = with licenses; [ mpl11 lgpl21Plus gpl2Plus ]; 40 }; 41}