From: Michał Górny Date: Fri, 29 May 2020 15:38:30 +0000 (+0200) Subject: dev-python/secretstorage: Skip gnome-keyring on hppa & sparc X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d695efb23bc736e5b00935f8db7e8c62a60ee4ad;p=gentoo.git dev-python/secretstorage: Skip gnome-keyring on hppa & sparc Signed-off-by: Michał Górny --- diff --git a/dev-python/secretstorage/secretstorage-3.1.2.ebuild b/dev-python/secretstorage/secretstorage-3.1.2.ebuild index b00b292f5d91..a375fee02157 100644 --- a/dev-python/secretstorage/secretstorage-3.1.2.ebuild +++ b/dev-python/secretstorage/secretstorage-3.1.2.ebuild @@ -23,16 +23,27 @@ RDEPEND=" >=dev-python/jeepney-0.4.2[${PYTHON_USEDEP}] " BDEPEND=" - test? ( + test? ( !hppa? ( !sparc? ( gnome-base/gnome-keyring sys-apps/dbus - ) + ) ) ) " distutils_enable_tests unittest distutils_enable_sphinx docs \ dev-python/alabaster +src_test() { + case ${ARCH} in + hppa|sparc) + einfo "gnome-keyring is not supported on ${ARCH}, skipping tests" + return + ;; + esac + + distutils-r1_src_test +} + python_test() { dbus-run-session "${EPYTHON}" -m unittest discover -v -s tests \ || die "tests failed with ${EPYTHON}"