pympress: unbreak (#430211)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- i/pympress/builder.py
|
||||
+++ w/pympress/builder.py
|
||||
@@ -76,7 +76,7 @@ class Builder(Gtk.Builder):
|
||||
Args:
|
||||
a_widget (:class:`~GObject.Object`): an object built by the builder, usually a widget
|
||||
"""
|
||||
- for str_prop in (prop.name for prop in a_widget.props if prop.value_type == GObject.TYPE_STRING):
|
||||
+ for str_prop in (prop.name for prop in list(a_widget.props) if prop.value_type == GObject.TYPE_STRING):
|
||||
try:
|
||||
str_val = getattr(a_widget.props, str_prop)
|
||||
if str_val:
|
||||
@@ -30,6 +30,13 @@ python3Packages.buildPythonApplication rec {
|
||||
babel
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Workaround for a bug on Python >= 3.13+ and pygobject < 3.51.
|
||||
# This can go away once nixpkgs is using pygobject >= 3.51.
|
||||
# See <https://github.com/Cimbali/pympress/issues/330> for details.
|
||||
./issue-330-gprops-iter-actually-iterable.patch
|
||||
];
|
||||
|
||||
dependencies =
|
||||
with python3Packages;
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user