commit:     132bf1db04df2026855a68960f80c60750b2145b
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 15 18:31:18 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Aug 15 18:31:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=132bf1db

dev-python/portalocker: add missing dev-python/redis test dep

Closes: https://bugs.gentoo.org/912318
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 dev-python/portalocker/portalocker-2.7.0.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/dev-python/portalocker/portalocker-2.7.0.ebuild 
b/dev-python/portalocker/portalocker-2.7.0.ebuild
index bf13c3b24040..1129e7ffef3a 100644
--- a/dev-python/portalocker/portalocker-2.7.0.ebuild
+++ b/dev-python/portalocker/portalocker-2.7.0.ebuild
@@ -5,7 +5,8 @@ EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_11 )
-inherit distutils-r1
+
+inherit distutils-r1 optfeature
 
 DESCRIPTION="A library for Python file locking"
 HOMEPAGE="
@@ -24,6 +25,7 @@ KEYWORDS="~amd64"
 
 BDEPEND="
        test? (
+               dev-python/redis[${PYTHON_USEDEP}]
                >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}]
                >=dev-python/sphinx-6.0.0[${PYTHON_USEDEP}]
        )
@@ -37,3 +39,7 @@ src_prepare() {
        # Disable code coverage in tests.
        sed -i '/^ *--cov.*$/d' pytest.ini || die
 }
+
+pkg_postinst() {
+       optfeature "redis support" dev-python/redis
+}

Reply via email to