diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild index 6e0b782393cef..fff84e38b987e 100644 --- a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild +++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.20.4-r1.ebuild @@ -42,12 +42,12 @@ RDEPEND=" sys-apps/dbus " BDEPEND=" + ${PYTHON_DEPS} >=dev-util/gdbus-codegen-2.80.5-r1 dev-python/docutils sys-devel/gettext virtual/pkgconfig test? ( - ${PYTHON_DEPS} dev-util/umockdev media-libs/gstreamer media-libs/gst-plugins-good @@ -66,14 +66,12 @@ PATCHES=( "${FILESDIR}/${PN}-1.20.0-sandbox-disable-failing-tests.patch" ) -pkg_setup() { - use test && python-any-r1_pkg_setup -} - python_check_deps() { - python_has_version ">=dev-python/pytest-3[${PYTHON_USEDEP}]" && - python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && - python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" + if use test; then + python_has_version ">=dev-python/pytest-3[${PYTHON_USEDEP}]" && + python_has_version "dev-python/pytest-xdist[${PYTHON_USEDEP}]" && + python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" + fi } src_configure() {