commit:     3d911ec924f27c16e092f8d43cdf64a33c2c09f7
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 29 11:05:34 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 11:10:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d911ec9

dev-python/confusable_homoglyphs: Enable py3.12

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../confusable_homoglyphs-3.2.0-r2.ebuild                 | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git 
a/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild 
b/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild
index 6db3190be9cc..5d7ef0d9fa24 100644
--- a/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild
+++ b/dev-python/confusable_homoglyphs/confusable_homoglyphs-3.2.0-r2.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1 pypi
 
@@ -18,6 +18,17 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
 
-RDEPEND="dev-python/click[${PYTHON_USEDEP}]"
+RDEPEND="
+       dev-python/click[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/versioneer[${PYTHON_USEDEP}]
+"
 
 distutils_enable_tests pytest
+
+src_prepare() {
+       # removed outdated bundled version (for py3.12 compat)
+       rm versioneer.py || die
+       distutils-r1_src_prepare
+}

Reply via email to