Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 twisted, 6 passlib, 7 pyparsing, 8 service-identity, 9 six, 10 zope-interface, 11 pythonOlder, 12 python, 13}: 14 15buildPythonPackage rec { 16 pname = "ldaptor"; 17 version = "21.2.0"; 18 format = "setuptools"; 19 disabled = pythonOlder "3.6"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g="; 24 }; 25 26 propagatedBuildInputs = [ 27 passlib 28 pyparsing 29 six 30 twisted 31 zope-interface 32 ] ++ twisted.optional-dependencies.tls; 33 34 nativeCheckInputs = [ twisted ]; 35 36 # Test creates an excessive amount of temporary files (order of millions). 37 # Cleaning up those files already took over 15 hours already on my zfs 38 # filesystem and is not finished yet. 39 doCheck = false; 40 41 checkPhase = '' 42 trial -j$NIX_BUILD_CORES ldaptor 43 ''; 44 45 meta = with lib; { 46 description = "Pure-Python Twisted library for LDAP"; 47 homepage = "https://github.com/twisted/ldaptor"; 48 license = licenses.mit; 49 maintainers = [ ]; 50 }; 51}