diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-12-30 22:31:18 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-12-30 22:55:37 +0100 |
commit | 9ca566ff89b7b4fb7a1c1edb019dbc02c3afdfd1 (patch) | |
tree | 4d6f25a32dfb38c4c36afd8c7295aff46ad747d9 /dev-python/lmdb/lmdb-1.3.0.ebuild | |
parent | dev-scheme/guile-gi: bump to 0.3.2 (diff) | |
download | gentoo-9ca566ff89b7b4fb7a1c1edb019dbc02c3afdfd1.tar.gz gentoo-9ca566ff89b7b4fb7a1c1edb019dbc02c3afdfd1.tar.bz2 gentoo-9ca566ff89b7b4fb7a1c1edb019dbc02c3afdfd1.zip |
dev-python/lmdb: Bump to 1.3.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/lmdb/lmdb-1.3.0.ebuild')
-rw-r--r-- | dev-python/lmdb/lmdb-1.3.0.ebuild | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/lmdb/lmdb-1.3.0.ebuild b/dev-python/lmdb/lmdb-1.3.0.ebuild new file mode 100644 index 000000000000..a09992f929d6 --- /dev/null +++ b/dev-python/lmdb/lmdb-1.3.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( pypy3 python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for the Lightning Database" +HOMEPAGE="https://github.com/jnwatson/py-lmdb/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="OPENLDAP" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-db/lmdb-0.9.28:= + $(python_gen_cond_dep ' + dev-python/cffi[${PYTHON_USEDEP}] + ' 'python*')" +DEPEND="${RDEPEND}" + +distutils_enable_sphinx docs +distutils_enable_tests pytest + +python_compile() { + LMDB_FORCE_SYSTEM=1 distutils-r1_python_compile +} + +python_test() { + epytest tests +} + +python_install() { + # This is required when the CFFI extension is used (for PyPy3) + LMDB_FORCE_SYSTEM=1 distutils-r1_python_install +} |