pympress: remove workaround for pygobject < 3.51

This reverts 355ea90cdb.
As of 8d6735db2b,
we now have a new enough version of pygobject3 that we can drop this
workaround.
This commit is contained in:
Jeremy Fleischman
2026-02-07 13:53:32 -08:00
parent 895c66264b
commit 1b2372f052
2 changed files with 0 additions and 18 deletions
@@ -1,11 +0,0 @@
--- 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
View File
@@ -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;
[