Install this version:
emerge -a =dev-python/curl-cffi-0.17.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/curl-cffi-0.17.0
Or alternatively:
emerge --autounmask-write -a =dev-python/curl-cffi-0.17.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.17.0 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..15} )
DISTUTILS_EXT=1
PYPI_VERIFY_REPO="https://github.com/lexiforest/curl_cffi"
inherit distutils-r1 pypi
DESCRIPTION="Python binding for curl-impersonate fork via cffi"
HOMEPAGE="https://pypi.org/project/curl-cffi/"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
# yt-dlp hardcodes the range of curl_cffi versions it will import and silently
# disables --impersonate when the installed version is outside it. Check
# yt_dlp/networking/_curlcffi.py on every bump, and block older yt-dlp here
# when a bump needs a newer one than the oldest in ::gentoo.
RDEPEND=">=dev-python/cffi-2.1.1[${PYTHON_USEDEP}]
>=dev-python/certifi-2026.10.19[${PYTHON_USEDEP}]
>=net-misc/curl-impersonate-1.0.0"
PATCHES=( "${FILESDIR}/${PN}-0001-system-libs.patch" )
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
>=dev-python/cffi-2.1.1[] >=dev-python/certifi-2026.10.19[] >=net-misc/curl-impersonate-1.0.0