push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -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:

View File

@@ -0,0 +1,82 @@
{
lib,
stdenv,
python3Packages,
fetchFromGitHub,
wrapGAppsHook3,
gtk3,
gobject-introspection,
libcanberra-gtk3,
poppler_gi,
withGstreamer ? stdenv.hostPlatform.isLinux,
gst_all_1,
withVLC ? stdenv.hostPlatform.isLinux,
}:
python3Packages.buildPythonApplication rec {
pname = "pympress";
version = "1.8.6";
pyproject = true;
src = fetchFromGitHub {
owner = "cimbali";
repo = "pympress";
tag = "v${version}";
hash = "sha256-rIlYd5SMWYeqdMHyW3d1ggKnUMCJCDP5uw25d7zG2DU=";
};
build-system = with python3Packages; [
setuptools
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;
[
watchdog
pycairo
pygobject3
]
++ lib.optional withVLC [
python-vlc
];
nativeBuildInputs = [
wrapGAppsHook3
gobject-introspection
];
buildInputs = [
gtk3
poppler_gi
]
++ lib.optionals withGstreamer [
libcanberra-gtk3
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
gst_all_1.gst-libav
gst_all_1.gst-vaapi
];
doCheck = false; # there are no tests
pythonImportsCheck = [ "pympress" ];
meta = {
description = "Simple yet powerful PDF reader designed for dual-screen presentations";
mainProgram = "pympress";
license = lib.licenses.gpl2Plus;
homepage = "https://cimbali.github.io/pympress/";
maintainers = with lib.maintainers; [ tbenst ];
};
}