summaryrefslogtreecommitdiff
path: root/dev-python/redis-py/redis-py-3.5.3.ebuild
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-08-16 09:49:12 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-08-16 17:17:39 +0300
commite02921ac791bba8134dfa8e16f194608d69e2def (patch)
tree57cb0522e4f3562d121df9832b33ccf94d3a0791 /dev-python/redis-py/redis-py-3.5.3.ebuild
parent216e744138b292272a62bd493f01502e93e330e5 (diff)
downloadgentoo-e02921ac791bba8134dfa8e16f194608d69e2def.tar.gz
gentoo-e02921ac791bba8134dfa8e16f194608d69e2def.tar.bz2
gentoo-e02921ac791bba8134dfa8e16f194608d69e2def.zip
dev-python/redis-py: enable py3.10, fix tests
Closes: https://bugs.gentoo.org/774981 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/redis-py/redis-py-3.5.3.ebuild')
-rw-r--r--dev-python/redis-py/redis-py-3.5.3.ebuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/dev-python/redis-py/redis-py-3.5.3.ebuild b/dev-python/redis-py/redis-py-3.5.3.ebuild
index 6954d82304d8..bd3db6072183 100644
--- a/dev-python/redis-py/redis-py-3.5.3.ebuild
+++ b/dev-python/redis-py/redis-py-3.5.3.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1
@@ -18,16 +18,21 @@ S="${WORKDIR}/${MY_P}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
-IUSE="test"
-RESTRICT="!test? ( test )"
-DEPEND="
+BDEPEND="
test? (
dev-db/redis
dev-python/mock[${PYTHON_USEDEP}]
)
"
+PATCHES=(
+ # https://github.com/andymccurdy/redis-py/issues/1459
+ "${FILESDIR}/${P}-fix-user-tests.patch"
+)
+
+distutils_enable_tests pytest
+
python_prepare_all() {
distutils-r1_python_prepare_all
@@ -73,5 +78,3 @@ src_test() {
# Clean up afterwards
kill "$(<"${redis_pid}")" || die
}
-
-distutils_enable_tests pytest