[COPY] --- T2-COPYRIGHT-BEGIN --- [COPY] t2/package/*/python-ldap/python-ldap.desc [COPY] Copyright (C) 2004 - 2025 The T2 SDE Project [COPY] SPDX-License-Identifier: GPL-2.0 [COPY] --- T2-COPYRIGHT-END --- [I] LDAP API for Python [T] python-ldap provides an object-oriented API to access LDAP directory [T] servers from Python programs. Mainly it wraps the OpenLDAP 2.x libs [T] for that purpose. [T] Additionally the package contains modules for other LDAP-related stuff [T] (e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.). [U] https://python-ldap.sourceforge.net [A] Michael Stroeder [M] The T2 Project [C] extra/development [E] add python openldap openssl cyrus-sasl2 [L] OpenSource [S] Stable [V] 3.4.5 [P] X -----5---9 300.000 [D] 678fb95d66989d5c0372e702c972a154099ca57b82fbe6353ad842ad python_ldap-3.4.5.tar.gz https://files.pythonhosted.org/packages/source/p/python-ldap/ python_ldap_preconf() { for package in openldap openssl cyrus-sasl2; do if pkginstalled $package; then pkgprefix -t $package lib_dir="$lib_dir $(pkgprefix libdir $package)" inc_dir="$inc_dir $(pkgprefix includedir $package)" fi done # adjusting library and include path sed -i "/library_dirs/s,/.*,$lib_dir," setup.cfg sed -i "/include_dirs/s,/.*,$inc_dir," setup.cfg # removing hardcoded sasl from setup.cfg if cyrus-sasl2 # is not installed if ! pkginstalled cyrus-sasl; then sed -i "s/^\(libs.*\) sasl2 \(.*\)/\1 \2/g" setup.cfg fi } hook_add preconf 5 "python_ldap_preconf"