diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-02 08:48:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-02 08:48:32 +0000 |
commit | e12724a13a1677867978f5ecd7fabda4eb1e3aa8 (patch) | |
tree | c4a7ae297f78e8e1302dc99fe9b664b7f34ce937 /dev-python/lz4/lz4-4.3.3.ebuild | |
parent | b46ba5cce8bd84d9a74b39923d9cdb29659cf662 (diff) |
gentoo auto-resync : 02:01:2024 - 08:48:32
Diffstat (limited to 'dev-python/lz4/lz4-4.3.3.ebuild')
-rw-r--r-- | dev-python/lz4/lz4-4.3.3.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/lz4/lz4-4.3.3.ebuild b/dev-python/lz4/lz4-4.3.3.ebuild new file mode 100644 index 000000000000..c3434bfb8af3 --- /dev/null +++ b/dev-python/lz4/lz4-4.3.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 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..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="LZ4 Bindings for Python" +HOMEPAGE=" + https://github.com/python-lz4/python-lz4/ + https://pypi.org/project/lz4/ +" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" + +DEPEND=" + app-arch/lz4:= +" +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + dev-python/pkgconfig[${PYTHON_USEDEP}] + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + ) +" + +# note: test suite fails with xdist +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # lz4.stream is not officially supported and not installed by default + # (we do not support installing it at the moment) + tests/stream + ) + + rm -rf lz4 || die + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |