From 1c33e521c460dc40899ce7bc919602b842ce27e2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Mar 2023 23:52:45 +0000 Subject: gentoo auto-resync : 05:03:2023 - 23:52:45 --- dev-python/hiredis/hiredis-2.2.2-r1.ebuild | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dev-python/hiredis/hiredis-2.2.2-r1.ebuild (limited to 'dev-python/hiredis/hiredis-2.2.2-r1.ebuild') diff --git a/dev-python/hiredis/hiredis-2.2.2-r1.ebuild b/dev-python/hiredis/hiredis-2.2.2-r1.ebuild new file mode 100644 index 000000000000..504ba13a0426 --- /dev/null +++ b/dev-python/hiredis/hiredis-2.2.2-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517="setuptools" +PYTHON_COMPAT=( python3_{9..11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Python extension that wraps hiredis" +HOMEPAGE="https://github.com/redis/hiredis-py/" +SRC_URI="https://github.com/redis/hiredis-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +DEPEND=">=dev-libs/hiredis-1.0.0:=" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${PN}-py-${PV} + +PATCHES=( + "${FILESDIR}"/${P}-system-libs.patch +) + +distutils_enable_tests pytest + +python_test() { + cd tests + epytest --import-mode=append +} -- cgit v1.2.3