Signed-off-by: Michał Górny <mgorny@gentoo.org>
>=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}"