nixpkgs/pkgs/development/python-modules/ldaptor/default.nix

41 lines
799 B
Nix
Raw Normal View History

2018-01-07 09:20:35 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, twisted
2020-02-22 22:05:18 +00:00
, passlib
2018-01-07 09:20:35 +00:00
, pyopenssl
, pyparsing
2020-02-22 22:05:18 +00:00
, service-identity
2018-01-07 09:20:35 +00:00
, zope_interface
, isPy3k
, pythonAtLeast
, python
2018-01-07 09:20:35 +00:00
}:
buildPythonPackage rec {
pname = "ldaptor";
version = "20.1.1";
2018-01-07 09:20:35 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "778f45d68a0b5d63a892c804c05e57b464413a41d8ae52f92ae569321473ab67";
2018-01-07 09:20:35 +00:00
};
propagatedBuildInputs = [
twisted passlib pyopenssl pyparsing service-identity zope_interface
2018-01-07 09:20:35 +00:00
];
# https://github.com/twisted/ldaptor/pull/210
disabled = !isPy3k || pythonAtLeast "3.9";
2018-01-07 09:20:35 +00:00
checkPhase = ''
${python.interpreter} -m twisted.trial ldaptor
'';
2018-01-07 09:20:35 +00:00
meta = {
description = "A Pure-Python Twisted library for LDAP";
homepage = "https://github.com/twisted/ldaptor";
2018-01-07 09:20:35 +00:00
license = lib.licenses.mit;
};
2020-02-22 22:05:18 +00:00
}