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";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "1.7.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "LFUzrGHr8jmUqoIcKokC0gNDVmW1EUZlj9eI+GDycvI=";
|
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";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
homepage = "https://cimbali.github.io/pympress/";
|
|
|
|
maintainers = [ maintainers.tbenst ];
|
|
|
|
};
|
|
|
|
}
|