2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, twisted
|
|
|
|
, passlib
|
|
|
|
, pyopenssl
|
|
|
|
, pyparsing
|
|
|
|
, service-identity
|
|
|
|
, zope_interface
|
|
|
|
, isPy3k
|
2021-02-05 17:12:51 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ldaptor";
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "20.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "778f45d68a0b5d63a892c804c05e57b464413a41d8ae52f92ae569321473ab67";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
twisted passlib pyopenssl pyparsing service-identity zope_interface
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# https://github.com/twisted/ldaptor/pull/210
|
|
|
|
disabled = !isPy3k || pythonAtLeast "3.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m twisted.trial ldaptor
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Pure-Python Twisted library for LDAP";
|
|
|
|
homepage = "https://github.com/twisted/ldaptor";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|