|
| 1 | +# Copyright 1999-2024 Gentoo Authors |
| 2 | +# Distributed under the terms of the GNU General Public License v2 |
| 3 | + |
| 4 | +EAPI=8 |
| 5 | + |
| 6 | +PYTHON_COMPAT=( python3_{11..12} ) |
| 7 | +DISTUTILS_USE_PEP517=setuptools |
| 8 | + |
| 9 | +inherit distutils-r1 |
| 10 | + |
| 11 | +DESCRIPTION="ACME protocol implementation in Python" |
| 12 | +HOMEPAGE="https://github.com/certbot/certbot https://pypi.org/project/acme/" |
| 13 | + |
| 14 | +PARENT_PN="certbot" |
| 15 | +PARENT_P="${PARENT_PN}-${PV}" |
| 16 | + |
| 17 | +if [[ "${PV}" == *9999 ]]; then |
| 18 | + inherit git-r3 |
| 19 | + |
| 20 | + EGIT_REPO_URI="https://github.com/certbot/certbot.git" |
| 21 | + EGIT_SUBMODULES=() |
| 22 | + EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}" |
| 23 | +else |
| 24 | + SRC_URI=" |
| 25 | + https://github.com/certbot/certbot/archive/v${PV}.tar.gz |
| 26 | + -> ${PARENT_P}.gh.tar.gz |
| 27 | + " |
| 28 | +KEYWORDS="amd64 arm arm64 x86" |
| 29 | +fi |
| 30 | + |
| 31 | +LICENSE="Apache-2.0" |
| 32 | +SLOT="0" |
| 33 | + |
| 34 | +S="${WORKDIR}/${PARENT_P}/${PN}" |
| 35 | + |
| 36 | +BDEPEND=" |
| 37 | + test? ( |
| 38 | + dev-python/pytest[${PYTHON_USEDEP}] |
| 39 | + dev-python/pytest-xdist[${PYTHON_USEDEP}] |
| 40 | + dev-python/typing-extensions[${PYTHON_USEDEP}] |
| 41 | + ) |
| 42 | +" |
| 43 | +# The requirement is really 17.5.0 but easier to require latest stable >= 23.1.1 |
| 44 | +# to avoid broken 23.1.0. |
| 45 | +RDEPEND=" |
| 46 | + dev-python/chardet[${PYTHON_USEDEP}] |
| 47 | + >=dev-python/cryptography-3.2.1[${PYTHON_USEDEP}] |
| 48 | + >=dev-python/josepy-1.13.0[${PYTHON_USEDEP}] |
| 49 | + >=dev-python/pyopenssl-23.1.1[${PYTHON_USEDEP}] |
| 50 | + dev-python/pyrfc3339[${PYTHON_USEDEP}] |
| 51 | + >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] |
| 52 | + >=dev-python/requests-2.20.0[${PYTHON_USEDEP}] |
| 53 | + >=dev-python/requests-toolbelt-0.3.0[${PYTHON_USEDEP}] |
| 54 | +" |
| 55 | + |
| 56 | +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme |
| 57 | +distutils_enable_tests pytest |
0 commit comments