1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_{5,6}} )
9 DESCRIPTION="Python based FIDO 2.0 library"
10 HOMEPAGE="https://github.com/Yubico/python-fido2"
11 SRC_URI="https://github.com/Yubico/python-fido2/releases/download/${PV}/${P}.tar.gz"
13 LICENSE="Apache-2.0 BSD-2 MIT MPL-2.0"
17 RESTRICT="!test? ( test )"
20 dev-python/six[${PYTHON_USEDEP}]
21 dev-python/cryptography[${PYTHON_USEDEP}]
22 $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python2_7)
24 dev-python/flask[${PYTHON_USEDEP}]
25 dev-python/pyopenssl[${PYTHON_USEDEP}]
29 dev-python/setuptools[${PYTHON_USEDEP}]
32 dev-python/mock[${PYTHON_USEDEP}]
33 dev-python/pyfakefs[${PYTHON_USEDEP}]
38 touch "${S}"/test/__init__.py || die
42 python_install_all() {
43 distutils-r1_python_install_all
47 dodoc -r "${S}"/examples/.
48 docompress -x "/usr/share/doc/${PF}/examples"