1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} )
12 DESCRIPTION="Python bindings to FreeDesktop.org Secret Service API."
13 HOMEPAGE="https://github.com/mitya57/secretstorage https://pypi.org/project/SecretStorage/"
14 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
15 S="${WORKDIR}/${MY_PN}-${PV}"
19 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
22 dev-python/cryptography[${PYTHON_USEDEP}]
23 >=dev-python/jeepney-0.4.2[${PYTHON_USEDEP}]
26 test? ( !hppa? ( !sparc? (
27 gnome-base/gnome-keyring
32 distutils_enable_tests unittest
33 distutils_enable_sphinx docs \
39 einfo "gnome-keyring is not supported on ${ARCH}, skipping tests"
48 dbus-run-session "${EPYTHON}" -m unittest discover -v -s tests \
49 || die "tests failed with ${EPYTHON}"