ieda: init at 0-unstable-2024-10-11 (#338769)
[NixPkgs.git] / pkgs / by-name / py / pympress / package.nix
blob8c8801fe8cd93b742649debd72da8a9bbaa9d2dc
2   lib,
3   stdenv,
4   python3Packages,
5   fetchPypi,
6   wrapGAppsHook3,
7   gtk3,
8   gobject-introspection,
9   libcanberra-gtk3,
10   poppler_gi,
11   withGstreamer ? stdenv.hostPlatform.isLinux,
12   gst_all_1,
13   withVLC ? stdenv.hostPlatform.isLinux,
16 python3Packages.buildPythonApplication rec {
17   pname = "pympress";
18   version = "1.8.5";
20   src = fetchPypi {
21     inherit version;
22     pname = "pympress";
23     hash = "sha256-Kb05EV0F8lTamTq7pC1UoOkYf04s58NjMksVE2xTC/Y=";
24   };
26   nativeBuildInputs = [
27     wrapGAppsHook3
28     gobject-introspection
29   ];
31   buildInputs =
32     [
33       gtk3
34       poppler_gi
35     ]
36     ++ lib.optionals withGstreamer [
37       libcanberra-gtk3
38       gst_all_1.gstreamer
39       gst_all_1.gst-plugins-base
40       gst_all_1.gst-plugins-bad
41       gst_all_1.gst-plugins-ugly
42       (gst_all_1.gst-plugins-good.override { gtkSupport = true; })
43       gst_all_1.gst-libav
44       gst_all_1.gst-vaapi
45     ];
47   propagatedBuildInputs =
48     with python3Packages;
49     [
50       pycairo
51       pygobject3
52       setuptools
53       watchdog
54     ]
55     ++ lib.optional withVLC python-vlc;
57   doCheck = false; # there are no tests
59   meta = with lib; {
60     description = "Simple yet powerful PDF reader designed for dual-screen presentations";
61     mainProgram = "pympress";
62     license = licenses.gpl2Plus;
63     homepage = "https://cimbali.github.io/pympress/";
64     maintainers = [ maintainers.tbenst ];
65   };