commit:     7badf35b70253965e966a33ad64b24617a0a7651
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Nov  8 14:41:05 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov  8 14:41:27 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7badf35b

dev-python/dominate: Enable py3.12

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

 dev-python/dominate/dominate-2.8.0.ebuild            |  7 ++++++-
 dev-python/dominate/files/dominate-2.8.0-py312.patch | 20 ++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/dev-python/dominate/dominate-2.8.0.ebuild 
b/dev-python/dominate/dominate-2.8.0.ebuild
index b6dce9410d70..744551817283 100644
--- a/dev-python/dominate/dominate-2.8.0.ebuild
+++ b/dev-python/dominate/dominate-2.8.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{10..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 
 inherit distutils-r1 pypi
 
@@ -19,3 +19,8 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 
 distutils_enable_tests pytest
+
+PATCHES=(
+       # quick hack, already fixed in git
+       "${FILESDIR}/${P}-py312.patch"
+)

diff --git a/dev-python/dominate/files/dominate-2.8.0-py312.patch 
b/dev-python/dominate/files/dominate-2.8.0-py312.patch
new file mode 100644
index 000000000000..ffd010caf735
--- /dev/null
+++ b/dev-python/dominate/files/dominate-2.8.0-py312.patch
@@ -0,0 +1,20 @@
+diff --git a/setup.py b/setup.py
+index f83890f..5454cc3 100644
+--- a/setup.py
++++ b/setup.py
+@@ -19,14 +19,11 @@ Public License along with dominate.  If not, see
+ 
+ from setuptools import setup
+ 
+-import imp
+-_version = imp.load_source("dominate._version", "dominate/_version.py")
+-
+ long_description = open('README.md').read()
+ 
+ setup(
+   name    = 'dominate',
+-  version = _version.__version__,
++  version = '2.8.0',
+   author  = 'Tom Flanagan and Jake Wharton',
+   author_email = '[email protected]',
+   license = 'LGPLv3',

Reply via email to