14 buildPythonPackage rec {
15 pname = "python-ldap";
17 disabled = pythonOlder "3.6";
19 src = fetchFromGitHub {
22 rev = "refs/tags/python-ldap-${version}";
23 hash = "sha256-/ehvSs2qjuTPhaaOP0agPbWyyRugBpUlPq/Ny9t2C58=";
31 propagatedBuildInputs = [
41 # Needed by tests to setup a mockup ldap server.
42 export BIN="${openldap}/bin"
43 export SBIN="${openldap}/bin"
44 export SLAPD="${openldap}/libexec/slapd"
45 export SCHEMA="${openldap}/etc/schema"
48 doCheck = !stdenv.isDarwin;
51 description = "Python modules for implementing LDAP clients";
52 homepage = "https://www.python-ldap.org/";
53 license = licenses.psfl;