summaryrefslogtreecommitdiff
path: root/dev-python/pyqt6
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyqt6')
-rw-r--r--dev-python/pyqt6/files/pyqt6-6.11.0-py3.15.patch17
-rw-r--r--dev-python/pyqt6/pyqt6-6.11.0.ebuild1
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-python/pyqt6/files/pyqt6-6.11.0-py3.15.patch b/dev-python/pyqt6/files/pyqt6-6.11.0-py3.15.patch
new file mode 100644
index 000000000000..a958770a9c9f
--- /dev/null
+++ b/dev-python/pyqt6/files/pyqt6-6.11.0-py3.15.patch
@@ -0,0 +1,17 @@
+https://src.fedoraproject.org/rpms/python-pyqt6/blob/rawhide/f/py315.patch
+--- a/qpy/QtCore/qpycore_pyqtslot.cpp
++++ b/qpy/QtCore/qpycore_pyqtslot.cpp
+@@ -24,6 +24,13 @@
+ #include "qpycore_pyqtslot.h"
+
+
++// PyWeakref_GetObject was removed from headers in Python 3.15 but is still
++// part of the stable ABI. Declare it here for Python 3.15+ compatibility.
++#if PY_VERSION_HEX >= 0x030f0000
++extern "C" PyObject* PyWeakref_GetObject(PyObject *ref);
++#endif
++
++
+ // Create the slot for a callable.
+ PyQtSlot::PyQtSlot(PyObject *callable, bool callable_is_method,
+ const Chimera::Signature *slot_signature)
diff --git a/dev-python/pyqt6/pyqt6-6.11.0.ebuild b/dev-python/pyqt6/pyqt6-6.11.0.ebuild
index 4c118034a1c2..1a103f24bb03 100644
--- a/dev-python/pyqt6/pyqt6-6.11.0.ebuild
+++ b/dev-python/pyqt6/pyqt6-6.11.0.ebuild
@@ -100,6 +100,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PN}-6.11.0-qt6.12.patch
+ "${FILESDIR}"/${PN}-6.11.0-py3.15.patch
)
src_prepare() {