2018-01-07 09:20:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, twisted
|
2020-02-22 22:05:18 +00:00
|
|
|
, passlib
|
2018-01-07 09:20:35 +00:00
|
|
|
, pyopenssl
|
|
|
|
, pyparsing
|
2020-02-22 22:05:18 +00:00
|
|
|
, service-identity
|
2018-01-07 09:20:35 +00:00
|
|
|
, zope_interface
|
|
|
|
, isPy3k
|
2021-01-20 11:57:58 +00:00
|
|
|
, python
|
2018-01-07 09:20:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ldaptor";
|
2021-03-01 08:26:48 +00:00
|
|
|
version = "21.2.0";
|
2018-01-07 09:20:35 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-01 08:26:48 +00:00
|
|
|
sha256 = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g=";
|
2018-01-07 09:20:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-01-20 11:57:58 +00:00
|
|
|
twisted passlib pyopenssl pyparsing service-identity zope_interface
|
2018-01-07 09:20:35 +00:00
|
|
|
];
|
|
|
|
|
2021-03-01 08:26:48 +00:00
|
|
|
disabled = !isPy3k;
|
2018-01-07 09:20:35 +00:00
|
|
|
|
2021-01-20 11:57:58 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m twisted.trial ldaptor
|
|
|
|
'';
|
2018-01-07 09:20:35 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Pure-Python Twisted library for LDAP";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/twisted/ldaptor";
|
2018-01-07 09:20:35 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2020-02-22 22:05:18 +00:00
|
|
|
}
|