2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
twisted,
|
|
|
|
passlib,
|
|
|
|
pyparsing,
|
|
|
|
six,
|
|
|
|
zope-interface,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ldaptor";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "21.2.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-05-18 14:49:53 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
passlib
|
|
|
|
pyparsing
|
|
|
|
six
|
|
|
|
twisted
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-interface
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ twisted.optional-dependencies.tls;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ twisted ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
# Test creates an excessive amount of temporary files (order of millions).
|
|
|
|
# Cleaning up those files already took over 15 hours already on my zfs
|
|
|
|
# filesystem and is not finished yet.
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkPhase = ''
|
2022-05-18 14:49:53 +00:00
|
|
|
trial -j$NIX_BUILD_CORES ldaptor
|
2021-02-05 17:12:51 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Pure-Python Twisted library for LDAP";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/twisted/ldaptor";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|