summaryrefslogtreecommitdiff
path: root/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-05-29 00:07:15 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-05-29 00:07:15 +0100
commit5c4786a868bad6e3f46aecf32ad6c6dc5de98408 (patch)
tree1a1792815761a5b6f645c8d55b6b698e102dca48 /app-emulation/libvirt/libvirt-10.0.0-r2.ebuild
parent3c1648a0749c1d66b300d857e6b417c1162890da (diff)
gentoo auto-resync : 29:05:2024 - 00:07:15
Diffstat (limited to 'app-emulation/libvirt/libvirt-10.0.0-r2.ebuild')
-rw-r--r--app-emulation/libvirt/libvirt-10.0.0-r2.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild b/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild
index baf260598704..6ef0ed221ed8 100644
--- a/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild
+++ b/app-emulation/libvirt/libvirt-10.0.0-r2.ebuild
@@ -136,6 +136,11 @@ DEPEND="
${BDEPEND}
${RDEPEND}
${PYTHON_DEPS}
+ test? (
+ $(python_gen_any_dep '
+ dev-python/pytest[${PYTHON_USEDEP}]
+ ')
+ )
"
# The 'circular' dependency on dev-python/libvirt-python is because of
# virt-qemu-qmp-proxy.
@@ -151,6 +156,11 @@ PATCHES=(
"${FILESDIR}"/${PN}-10.2.0-remote-check-for-negative-array-lengths-before-alloc.patch
)
+python_check_deps() {
+ use test && python_has_version -d "dev-python/pytest[${PYTHON_USEDEP}]"
+ return 0
+}
+
pkg_setup() {
# Check kernel configuration:
CONFIG_CHECK=""