1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DISTUTILS_USE_SETUPTOOLS=rdepend
7 PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} )
11 DESCRIPTION="Provides access to the system keyring service"
12 HOMEPAGE="https://github.com/jaraco/keyring"
13 SRC_URI="https://github.com/jaraco/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
21 dev-python/secretstorage[${PYTHON_USEDEP}]
22 dev-python/entrypoints[${PYTHON_USEDEP}]
23 dev-python/jeepney[${PYTHON_USEDEP}]
24 $(python_gen_cond_dep '
25 dev-python/importlib_metadata[${PYTHON_USEDEP}]
26 ' pypy3 python3_{5,6,7})
29 dev-python/setuptools_scm[${PYTHON_USEDEP}]
30 dev-python/toml[${PYTHON_USEDEP}]
33 distutils_enable_tests pytest
34 distutils_enable_sphinx docs \
35 dev-python/jaraco-packaging \
38 python_prepare_all() {
39 sed -i -e 's:--flake8 --black --cov::' pytest.ini || die
40 # relies on cpython's gc behavior
41 sed -i -e 's:test_traceback_not_referenced:_&:' \
42 tests/test_errors.py || die
44 rm tests/backends/test_kwallet.py || die
46 distutils-r1_python_prepare_all
48 export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}