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
|
2020-04-24 23:36:52 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, poppler_gi
|
2021-08-08 23:34:03 +00:00
|
|
|
, withGstreamer ? stdenv.isLinux
|
|
|
|
, 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 = [
|
|
|
|
wrapGAppsHook
|
2022-09-09 14:08:57 +00:00
|
|
|
gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
poppler_gi
|
2021-08-08 23:34:03 +00:00
|
|
|
] ++ lib.optional withGstreamer libcanberra-gtk3;
|
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 ];
|
|
|
|
};
|
|
|
|
}
|