dev-python/lmdb - 2.2.1 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/lmdb-2.2.1

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

autounmask =dev-python/lmdb-2.2.1

Or alternatively:

emerge --autounmask-write -a =dev-python/lmdb-2.2.1

Package Information

Description:
Python bindings for the Lightning Database
Homepage:
https://github.com/jnwatson/py-lmdb/ https://pypi.org/project/lmdb/
License:
OPENLDAP

Ebuild Details

Version EAPI Keywords Slot
2.2.1 8 ~amd64 ~arm ~arm64 ~riscv ~x86 0
View Raw Ebuild
# 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
PYPI_VERIFY_REPO=https://github.com/jnwatson/py-lmdb
PYTHON_COMPAT=( python3_{12..15} )

inherit distutils-r1 pypi

DESCRIPTION="Python bindings for the Lightning Database"
HOMEPAGE="
	https://github.com/jnwatson/py-lmdb/
	https://pypi.org/project/lmdb/
"

LICENSE="OPENLDAP"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"

# cffi is used only on pypy, so no dep
DEPEND="
	>=dev-db/lmdb-0.9.28:=
"
RDEPEND="
	${DEPEND}
"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

export LMDB_FORCE_SYSTEM=1

python_test() {
	rm -rf lmdb || die
	epytest tests
}

src_install() {
	distutils-r1_src_install

	# remove temporary files
	find "${D}" -name '*.o' -delete || die
	find "${D}" -depth -type d -empty -delete || die
}

Inherited Eclasses

Dependencies

DEPEND

	>=dev-db/lmdb-0.9.28:=

RDEPEND

	
	>=dev-db/lmdb-0.9.28:=