mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
272430c823
This follows the term used by PEP 621.
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, twisted
|
|
, passlib
|
|
, pyparsing
|
|
, service-identity
|
|
, six
|
|
, zope_interface
|
|
, pythonOlder
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ldaptor";
|
|
version = "21.2.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
passlib
|
|
pyparsing
|
|
six
|
|
twisted
|
|
zope_interface
|
|
] ++ twisted.optional-dependencies.tls;
|
|
|
|
checkInputs = [
|
|
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 = with lib; {
|
|
description = "A Pure-Python Twisted library for LDAP";
|
|
homepage = "https://github.com/twisted/ldaptor";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|