From d695efb23bc736e5b00935f8db7e8c62a60ee4ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Fri, 29 May 2020 17:38:30 +0200 Subject: [PATCH] dev-python/secretstorage: Skip gnome-keyring on hppa & sparc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../secretstorage/secretstorage-3.1.2.ebuild | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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}" -- 2.26.2