# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=hatchling PYTHON_COMPAT=( python3_{12..15} ) inherit distutils-r1 eapi9-ver MY_PV=$(ver_rs 3 -) MY_P="cloudflare-python-${MY_PV}" DESCRIPTION="The official Python library for the Cloudflare API" HOMEPAGE=" https://github.com/cloudflare/cloudflare-python https://pypi.org/project/cloudflare/ " SRC_URI=" https://github.com/cloudflare/cloudflare-python/archive/refs/tags/v${MY_PV}.tar.gz -> ${MY_P}.gh.tar.gz " S="${WORKDIR}/${MY_P}" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" PROPERTIES="test? ( test_network )" # Note for maintainers: watch follow issue to switch for httpx2 # https://github.com/cloudflare/cloudflare-python/issues/2733 RDEPEND=" >=dev-python/anyio-3.5.0[${PYTHON_USEDEP}] =dev-python/distro-1.7.0[${PYTHON_USEDEP}] =dev-python/httpx-0.23.0[${PYTHON_USEDEP}] =dev-python/pydantic-1.9.0[${PYTHON_USEDEP}] =dev-python/typing-extensions-4.14[${PYTHON_USEDEP}]