depot/third_party/nixpkgs/pkgs/development/python-modules/ldaptor/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

38 lines
699 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, twisted
, passlib
, pyopenssl
, pyparsing
, service-identity
, zope_interface
, isPy3k
, python
}:
buildPythonPackage rec {
pname = "ldaptor";
version = "21.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-jEnrGTddSqs+W4NYYGFODLF+VrtaIOGHSAj6W+xno1g=";
};
propagatedBuildInputs = [
twisted passlib pyopenssl pyparsing service-identity zope_interface
];
disabled = !isPy3k;
checkPhase = ''
${python.interpreter} -m twisted.trial ldaptor
'';
meta = {
description = "A Pure-Python Twisted library for LDAP";
homepage = "https://github.com/twisted/ldaptor";
license = lib.licenses.mit;
};
}