Unverified Commit 355ea90c authored by Jacek Galowicz's avatar Jacek Galowicz Committed by GitHub
Browse files

pympress: unbreak (#430211)

parents 61c572b0 66e3e178
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
--- 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:
+7 −0
Original line number Diff line number Diff line
@@ -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;
    [