commit:     02e6af52390f16a3f7b25744de303a0e69d724e3
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 28 05:22:54 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Nov 28 05:23:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02e6af52

dev-python/python-xlib: fix with python[-tk]

Closes: https://bugs.gentoo.org/881851
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../files/python-xlib-0.32-drop-unused-tkinter-import.patch      | 9 +++++++++
 .../{python-xlib-0.32.ebuild => python-xlib-0.32-r1.ebuild}      | 4 ++++
 2 files changed, 13 insertions(+)

diff --git 
a/dev-python/python-xlib/files/python-xlib-0.32-drop-unused-tkinter-import.patch
 
b/dev-python/python-xlib/files/python-xlib-0.32-drop-unused-tkinter-import.patch
new file mode 100644
index 000000000000..5a0272a867b9
--- /dev/null
+++ 
b/dev-python/python-xlib/files/python-xlib-0.32-drop-unused-tkinter-import.patch
@@ -0,0 +1,9 @@
+https://bugs.gentoo.org/881851
+https://github.com/python-xlib/python-xlib/issues/240
+https://github.com/python-xlib/python-xlib/pull/238
+--- a/Xlib/ext/randr.py
++++ b/Xlib/ext/randr.py
+@@ -36,3 +36,2 @@
+ 
+-from tkinter import W
+ from Xlib import X

diff --git a/dev-python/python-xlib/python-xlib-0.32.ebuild 
b/dev-python/python-xlib/python-xlib-0.32-r1.ebuild
similarity index 93%
rename from dev-python/python-xlib/python-xlib-0.32.ebuild
rename to dev-python/python-xlib/python-xlib-0.32-r1.ebuild
index 40de7abfe2c4..ca3e97705196 100644
--- a/dev-python/python-xlib/python-xlib-0.32.ebuild
+++ b/dev-python/python-xlib/python-xlib-0.32-r1.ebuild
@@ -34,6 +34,10 @@ BDEPEND="
 
 distutils_enable_tests unittest
 
+PATCHES=(
+       "${FILESDIR}"/${P}-drop-unused-tkinter-import.patch
+)
+
 python_compile_all() {
        use doc && emake -C doc/info
 }

Reply via email to