Merge pull request #172112 from SuperSandro2000/ldaptor

python310Packages.ldaptor: adopt, use twisted.extras-require.tls, mark broken
This commit is contained in:
Sandro 2022-05-09 15:00:05 +02:00 committed by GitHub
commit aa88a6be6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,17 +3,18 @@
, fetchPypi
, twisted
, passlib
, pyopenssl
, pyparsing
, service-identity
, six
, zope_interface
, isPy3k
, pythonOlder
, python
}:
buildPythonPackage rec {
pname = "ldaptor";
version = "21.2.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
@ -21,18 +22,27 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [
twisted passlib pyopenssl pyparsing service-identity zope_interface
passlib
pyparsing
six
twisted
zope_interface
] ++ twisted.extras-require.tls;
checkInputs = [
twisted
];
disabled = !isPy3k;
checkPhase = ''
${python.interpreter} -m twisted.trial ldaptor
trial -j$NIX_BUILD_CORES ldaptor
'';
meta = {
meta = with lib; {
description = "A Pure-Python Twisted library for LDAP";
homepage = "https://github.com/twisted/ldaptor";
license = lib.licenses.mit;
license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ];
# tests hang or fail with "no space left on device"
broken = true;
};
}