Files
nixpkgs/pkgs/development/python-modules/ldaptor/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
998 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
twisted,
passlib,
pyparsing,
six,
zope-interface,
pythonOlder,
}:
buildPythonPackage rec {
pname = "ldaptor";
version = "21.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g=";
};
propagatedBuildInputs = [
passlib
pyparsing
six
twisted
zope-interface
]
++ twisted.optional-dependencies.tls;
nativeCheckInputs = [ twisted ];
# 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;
checkPhase = ''
trial -j$NIX_BUILD_CORES ldaptor
'';
meta = {
description = "Pure-Python Twisted library for LDAP";
homepage = "https://github.com/twisted/ldaptor";
license = lib.licenses.mit;
maintainers = [ ];
};
}