diff --git a/dev-python/decopatch/decopatch-1.4.10-r1.ebuild b/dev-python/decopatch/decopatch-1.4.10-r1.ebuild index d89f6945d0..58e502b2a5 100644 --- a/dev-python/decopatch/decopatch-1.4.10-r1.ebuild +++ b/dev-python/decopatch/decopatch-1.4.10-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2025 Gentoo Authors +# Copyright 2022-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,7 +21,10 @@ KEYWORDS="~amd64" RDEPEND="dev-python/makefun[${PYTHON_USEDEP}]" BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]" -PATCHES=( "${FILESDIR}/${P}-python12.patch" ) +PATCHES=( + "${FILESDIR}/${P}-python12.patch" + "${FILESDIR}/${P}-pkg_resources.patch" +) EPYTEST_PLUGINS=( pytest-cases ) EPYTEST_DESELECT=( diff --git a/dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch b/dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch new file mode 100644 index 0000000000..3b1b47773a --- /dev/null +++ b/dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch @@ -0,0 +1,24 @@ +https://github.com/smarie/python-decopatch/pull/39 + +--- + setup.py | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/setup.py b/setup.py +index ab1583e..f533213 100644 +--- a/setup.py ++++ b/setup.py +@@ -15,13 +15,6 @@ + from setuptools import setup + + +-# (1) check required versions (from https://medium.com/@daveshawley/safely-using-setup-cfg-for-metadata-1babbe54c108) +-import pkg_resources +- +-pkg_resources.require("setuptools>=39.2") +-pkg_resources.require("setuptools_scm") +- +- + # (2) Generate download url using git version + from setuptools_scm import get_version # noqa: E402 +