dev-python/ldif - 4.2.5 (ssnb)

Search

Install

Install this version:

emerge -a =dev-python/ldif-4.2.5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/ldif-4.2.5

Or alternatively:

emerge --autounmask-write -a =dev-python/ldif-4.2.5

Package Information

Description:
This is a fork of the ldif module from python-ldap with python3/unicode support.
Homepage:
https://github.com/abilian/ldif
License:
Apache

Ebuild Details

Version EAPI Keywords Slot
4.2.5 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( pypy3 python3_{11,12,13} )

inherit distutils-r1

DESCRIPTION="This is a fork of the ldif module from python-ldap with python3/unicode support."
HOMEPAGE="https://github.com/abilian/ldif"
#SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
SRC_URI="
         https://github.com/abilian/${PN}/archive/${PV}.tar.gz
         -> ${P}.tar.gz
        "

LICENSE="Apache"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/urllib3[${PYTHON_USEDEP}]
"
BDEPEND="
	>=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
	test? (
		${RDEPEND}
		dev-python/path-py[${PYTHON_USEDEP}]
		dev-python/flake8
		dev-python/mypy
		dev-python/pytest
	)
"

S="${WORKDIR}/${P}"

distutils_enable_tests pytest

python_test() {
	# Ignore the module from ${S}, use the one from ${BUILD_DIR}
	# Otherwise, ImportMismatchError may occur
	# https://github.com/gentoo/gentoo/pull/1622#issuecomment-224482396
	# Override pytest options to skip flake8
	pytest -vv --ignore=rst --override-ini="addopts=--doctest-modules" \
		|| die "tests failed with ${EPYTHON}"
}

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/urllib3[]

BDEPEND

	>=dev-python/setuptools_scm-1.15.0[]
	test? (
		
	dev-python/urllib3[]

		dev-python/path-py[]
		dev-python/flake8
		dev-python/mypy
		dev-python/pytest
	)

Manifest for 4.2.5

Type File Size Source URLs
DIST ldif-4.2.5.tar.gz 15787 bytes https://github.com/abilian/ldif/archive/4.2.5.tar.gz