2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-08-08 23:34:03 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3Packages
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, poppler_gi
|
2021-08-08 23:34:03 +00:00
|
|
|
, withGstreamer ? stdenv.isLinux
|
2024-06-20 14:57:18 +00:00
|
|
|
, gst_all_1
|
2021-08-08 23:34:03 +00:00
|
|
|
, withVLC ? stdenv.isLinux
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "pympress";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.8.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2023-10-09 19:29:22 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "pympress";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-Kb05EV0F8lTamTq7pC1UoOkYf04s58NjMksVE2xTC/Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-09-09 14:08:57 +00:00
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
poppler_gi
|
2024-06-20 14:57:18 +00:00
|
|
|
] ++ 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
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
2021-08-08 23:34:03 +00:00
|
|
|
setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
watchdog
|
2021-08-08 23:34:03 +00:00
|
|
|
] ++ lib.optional withVLC python-vlc;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = false; # there are no tests
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple yet powerful PDF reader designed for dual-screen presentations";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pympress";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
homepage = "https://cimbali.github.io/pympress/";
|
|
|
|
maintainers = [ maintainers.tbenst ];
|
|
|
|
};
|
|
|
|
}
|