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