22 buildPythonPackage rec {
23 pname = "python-ldap";
27 disabled = pythonOlder "3.6";
29 src = fetchFromGitHub {
30 owner = "python-ldap";
32 rev = "refs/tags/python-ldap-${version}";
33 hash = "sha256-v1cWoRGxbvvFnHqnwoIfmiQQcxfaA8Bf3+M5bE5PtuU=";
45 propagatedBuildInputs = [
55 # Needed by tests to setup a mockup ldap server.
56 export BIN="${openldap}/bin"
57 export SBIN="${openldap}/bin"
58 export SLAPD="${openldap}/libexec/slapd"
59 export SCHEMA="${openldap}/etc/schema"
63 # https://github.com/python-ldap/python-ldap/issues/501
67 doCheck = !stdenv.isDarwin;
70 changelog = "https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-${version}";
71 description = "Python modules for implementing LDAP clients";
72 downloadPage = "https://github.com/python-ldap/python-ldap";
73 homepage = "https://www.python-ldap.org/";
74 license = licenses.psfl;