# Copyright 2025-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{12..15} python3_{14,15}t ) inherit distutils-r1 pypi DESCRIPTION="Patch built-in Python objects" HOMEPAGE=" https://github.com/clarete/forbiddenfruit/ https://pypi.org/project/forbiddenfruit/ " LICENSE="|| ( GPL-3 MIT )" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" PATCHES=( # https://github.com/clarete/forbiddenfruit/pull/87 "${FILESDIR}/${P}-py313.patch" # https://github.com/clarete/forbiddenfruit/pull/89 "${FILESDIR}/${P}-ft.patch" ) EPYTEST_PLUGINS=() distutils_enable_tests pytest python_test() { local -x FFRUIT_EXTENSION=true esetup.py build_ext -b tests/unit epytest }