diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-15 06:07:52 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-15 06:07:52 +0000 |
| commit | 5e07081cf4f5afaef79409b430a018b1daec073e (patch) | |
| tree | 208230f6eaf30cf6902475e9163d95aeb0c30ec4 /dev-python/python-ldap | |
| parent | 416b69e88dccd53b54eb1dfa8e91ebc06c45fa2e (diff) | |
| download | baldeagleos-repo-5e07081cf4f5afaef79409b430a018b1daec073e.tar.gz baldeagleos-repo-5e07081cf4f5afaef79409b430a018b1daec073e.tar.xz baldeagleos-repo-5e07081cf4f5afaef79409b430a018b1daec073e.zip | |
Adding metadata
Diffstat (limited to 'dev-python/python-ldap')
| -rw-r--r-- | dev-python/python-ldap/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/python-ldap/python-ldap-3.4.6.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-python/python-ldap/Manifest b/dev-python/python-ldap/Manifest index f229740ce905..73dafd8a25ad 100644 --- a/dev-python/python-ldap/Manifest +++ b/dev-python/python-ldap/Manifest @@ -1 +1,2 @@ DIST python-ldap-3.4.5.gh.tar.gz 380704 BLAKE2B bd047f4472d23cbdb8573549e8b769b485bab1797d8325337a659e4388683ba44f8ab2709fa31289b46ab7198d3528247e0d156631c0e48ec7ee989d2b43802d SHA512 5161b7f2b5a0d975f7e5c7e16df132f0b709b986ec8a8e304d836bad278b971f5fdaf4ef39116d62947695f9eb5d7b3315317a3c7973d045c3cbde03933f4308 +DIST python-ldap-3.4.6.gh.tar.gz 381136 BLAKE2B 5d57d2f6d58facf4942a36ecfccd542e9a3bce91dbce1a49e7c94360f11486266aac469c4d4df00b61081395014def4c856c156c5f78ea1c1fb7dcc6edbbf26b SHA512 29d5fbb4e6c7e07160e591ef74aa342e4a7906ab712f6054f6e3eca1c7bd1164083c6bb9653260c12015a6e8ebcfe673e36f7614ff02f0dc1d9de7683a557a54 diff --git a/dev-python/python-ldap/python-ldap-3.4.6.ebuild b/dev-python/python-ldap/python-ldap-3.4.6.ebuild new file mode 100644 index 000000000000..3d04dbdfcfee --- /dev/null +++ b/dev-python/python-ldap/python-ldap-3.4.6.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..14} ) + +inherit distutils-r1 + +DESCRIPTION="Various LDAP-related Python modules" +HOMEPAGE=" + https://www.python-ldap.org/en/latest/ + https://pypi.org/project/python-ldap/ + https://github.com/python-ldap/python-ldap/ +" +SRC_URI=" + https://github.com/python-ldap/python-ldap/archive/${P}.tar.gz + -> ${P}.gh.tar.gz +" +S=${WORKDIR}/${PN}-${P} + +LICENSE="MIT PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="examples sasl ssl" + +RDEPEND=" + >=dev-python/pyasn1-0.3.7[${PYTHON_USEDEP}] + >=dev-python/pyasn1-modules-0.1.5[${PYTHON_USEDEP}] + net-nds/openldap:=[sasl?,ssl?] +" +# We do not link against cyrus-sasl but we use some +# of its headers during the build. +DEPEND=" + net-nds/openldap:=[sasl?,ssl?] + sasl? ( >=dev-libs/cyrus-sasl-2.1 ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest +distutils_enable_sphinx Doc + +python_prepare_all() { + if ! use sasl; then + sed -i 's/HAVE_SASL//g' setup.cfg || die + fi + if ! use ssl; then + sed -i 's/HAVE_TLS//g' setup.cfg || die + fi + + distutils-r1_python_prepare_all +} + +python_test() { + # Run all tests which don't require slapd + local EPYTEST_IGNORE=( + t_bind.py + t_cext.py + t_edit.py + t_ldapobject.py + t_ldap_options.py + t_ldap_sasl.py + t_ldap_schema_subentry.py + t_ldap_syncrepl.py + t_slapdobject.py + ) + pushd Tests >/dev/null || die + epytest + popd > /dev/null || die +} + +python_install_all() { + if use examples; then + docinto examples + dodoc -r Demo/. + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |
