1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=(python{2_7,3_6,3_7})
7 if [[ ${PV} == 9999* ]]; then
8 EGIT_REPO_URI="https://github.com/certbot/certbot.git"
10 S=${WORKDIR}/${P}/${PN}
12 SRC_URI="https://github.com/certbot/certbot/archive/v${PV}.tar.gz -> certbot-${PV}.tar.gz"
13 KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
14 S=${WORKDIR}/certbot-${PV}/acme
19 DESCRIPTION="An implementation of the ACME protocol"
20 HOMEPAGE="https://github.com/certbot/certbot https://letsencrypt.org/"
25 RESTRICT="!test? ( test )"
28 >=dev-python/cryptography-1.3.4[${PYTHON_USEDEP}]
29 >=dev-python/idna-2.0.0[${PYTHON_USEDEP}]
30 >=dev-python/josepy-1.1.0[${PYTHON_USEDEP}]
31 dev-python/mock[${PYTHON_USEDEP}]
32 >=dev-python/pyopenssl-0.13.1[${PYTHON_USEDEP}]
33 dev-python/pyrfc3339[${PYTHON_USEDEP}]
34 dev-python/pytz[${PYTHON_USEDEP}]
35 >=dev-python/requests-2.10[${PYTHON_USEDEP}]
36 >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}]
37 >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
41 dev-python/sphinx[${PYTHON_USEDEP}]
42 dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
46 dev-python/nose[${PYTHON_USEDEP}]
47 dev-python/pytest[${PYTHON_USEDEP}]
48 dev-python/pytest-xdist[${PYTHON_USEDEP}]
50 >=dev-python/setuptools-1.0[${PYTHON_USEDEP}]
54 python_foreach_impl run_in_build_dir default
57 sphinx-build -b html -d _build/doctrees . _build/html
62 nosetests -w ${PN} || die
65 python_install_all() {
66 use doc && local HTML_DOCS=( docs/_build/html/. )
68 distutils-r1_python_install_all