summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-12-10 17:39:00 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2021-12-10 17:39:38 +0200
commit0ea4f01bfca60ccdf162faa1e6d3e34415cbe173 (patch)
treedf214d9ee8ed2e1decbdee0bfbc873c4f1dc9447 /dev-python/guessit
parentkde-plasma/libkworkspace: Drop 5.23.4 (r0) (diff)
downloadgentoo-0ea4f01bfca60ccdf162faa1e6d3e34415cbe173.tar.gz
gentoo-0ea4f01bfca60ccdf162faa1e6d3e34415cbe173.tar.bz2
gentoo-0ea4f01bfca60ccdf162faa1e6d3e34415cbe173.zip
dev-python/guessit: add test dep on pytest-mock
Closes: https://bugs.gentoo.org/828783 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/guessit')
-rw-r--r--dev-python/guessit/guessit-3.4.2.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/dev-python/guessit/guessit-3.4.2.ebuild b/dev-python/guessit/guessit-3.4.2.ebuild
index 9eaa73f85cd4..76895fde1393 100644
--- a/dev-python/guessit/guessit-3.4.2.ebuild
+++ b/dev-python/guessit/guessit-3.4.2.ebuild
@@ -24,6 +24,11 @@ RDEPEND="
dev-python/importlib_resources[${PYTHON_USEDEP}]
' python3_8 pypy3)
"
+BDEPEND="
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )
+"
distutils_enable_tests pytest
@@ -32,8 +37,5 @@ python_prepare_all() {
rm guessit/test/test_benchmark.py || die
sed -i -e "s|'pytest-benchmark',||g" setup.py || die
- # Disable unconditional dependency on dev-python/pytest-runner.
- sed -i -e "s|'pytest-runner'||g" setup.py || die
-
distutils-r1_python_prepare_all
}