Unverified Commit 1b2372f0 authored by Jeremy Fleischman's avatar Jeremy Fleischman
Browse files

pympress: remove workaround for pygobject < 3.51

This reverts 355ea90c.
As of 8d6735db,
we now have a new enough version of pygobject3 that we can drop this
workaround.
parent 895c6626
Loading
Loading
Loading
Loading
+0 −11
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:
+0 −7
Original line number Diff line number Diff line
@@ -30,13 +30,6 @@ python3Packages.buildPythonApplication (finalAttrs: {
    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;
    [