summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2023-03-04 21:44:31 +0100
committerSven Wegener <swegener@gentoo.org>2023-03-04 22:44:42 +0100
commit7141f4af1cdfba37db29c65dddea3e9ee444d553 (patch)
tree19f93e00d83ecbce929331f25f57de1e93c56abd /dev-python/hiredis
parentgames-emulation/ppsspp: remove glslang dep - turn off shared libs (diff)
downloadgentoo-7141f4af1cdfba37db29c65dddea3e9ee444d553.tar.gz
gentoo-7141f4af1cdfba37db29c65dddea3e9ee444d553.tar.bz2
gentoo-7141f4af1cdfba37db29c65dddea3e9ee444d553.zip
dev-python/hiredis: pep517, re-add tests
Bug: https://bugs.gentoo.org/890385 Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'dev-python/hiredis')
-rw-r--r--dev-python/hiredis/Manifest2
-rw-r--r--dev-python/hiredis/hiredis-2.2.2-r1.ebuild (renamed from dev-python/hiredis/hiredis-2.2.2.ebuild)13
2 files changed, 13 insertions, 2 deletions
diff --git a/dev-python/hiredis/Manifest b/dev-python/hiredis/Manifest
index 66bc6690b936..bf1b5ba11125 100644
--- a/dev-python/hiredis/Manifest
+++ b/dev-python/hiredis/Manifest
@@ -1,2 +1,2 @@
DIST hiredis-2.0.0.tar.gz 75807 BLAKE2B dc7535f117c8ecfb2c924fe44a1cba2f02271c544588249de6794ce3aec27f66038ecb9f6364ca87b71f66ba13870a3be192eb79c1f360d2eb6dcb6dcae41caa SHA512 b9a313acdd00676dc046713a81bbf4336959f49f09bd2828997c23ca41259935047c657a4b6f81913715141a75fb6bbe7fc4429c7a5b0f4bc3d5de66b9cfa909
-DIST hiredis-2.2.2.tar.gz 84086 BLAKE2B f8a3b3baceb1b68d87202fe1fdd954d1e2a3320dab93acbe2d6f86a462ca18814c41416f84b8ba306a7c9af18560375e6523025c3b81f3c92e89620c68ed6a7e SHA512 abb6883af0d186f0ada10ebb2128cc31c8e84273b75de762097489b25a28ed4442bf33a9c088152843aadfcb4daaae6ff65a21cf0e5d8a07a60a7e3fac1ab855
+DIST hiredis-2.2.2.gh.tar.gz 18010 BLAKE2B 67ab7c3f0667d3cf33abea58fbe37bcc28beb569f6f3da966f191d00965faa5a835a286172179d6f33f4e0fa81743fa345829f04d9d89350ab1394cc0c168147 SHA512 8a42df63911000cd119da33e7fea25fa1a5244a86016818bcb6c6e12c042b12b00b7272633d85dcf921fd2eba67145e3258c64689be799a0f59766e541139120
diff --git a/dev-python/hiredis/hiredis-2.2.2.ebuild b/dev-python/hiredis/hiredis-2.2.2-r1.ebuild
index c92b75861004..73e4ec6b5e51 100644
--- a/dev-python/hiredis/hiredis-2.2.2.ebuild
+++ b/dev-python/hiredis/hiredis-2.2.2-r1.ebuild
@@ -3,12 +3,14 @@
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="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="https://github.com/redis/hiredis-py/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="BSD"
SLOT="0"
@@ -18,9 +20,18 @@ IUSE="system-libs"
DEPEND="system-libs? ( >=dev-libs/hiredis-1.0.0:= )"
RDEPEND="${DEPEND}"
+S="${WORKDIR}"/${PN}-py-${PV}
+
+distutils_enable_tests pytest
+
src_prepare() {
use system-libs && PATCHES+=(
"${FILESDIR}"/${P}-system-libs.patch
)
default
}
+
+python_test() {
+ cd tests
+ epytest --import-mode=append
+}