2019-05-27 03:26:26 +00:00
|
|
|
{ lib
|
2021-07-31 19:29:25 +00:00
|
|
|
, stdenv
|
2019-05-27 03:26:26 +00:00
|
|
|
, python3Packages
|
2023-05-25 14:51:30 +00:00
|
|
|
, fetchPypi
|
2019-05-27 03:26:26 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
, libcanberra-gtk3
|
|
|
|
, poppler_gi
|
2021-07-31 19:29:25 +00:00
|
|
|
, withGstreamer ? stdenv.isLinux
|
|
|
|
, withVLC ? stdenv.isLinux
|
2023-05-25 14:51:30 +00:00
|
|
|
}:
|
2019-05-27 03:26:26 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "pympress";
|
2022-09-06 19:46:02 +00:00
|
|
|
version = "1.7.2";
|
2019-05-27 03:26:26 +00:00
|
|
|
|
2023-05-25 14:51:30 +00:00
|
|
|
src = fetchPypi {
|
2019-05-27 03:26:26 +00:00
|
|
|
inherit pname version;
|
2022-09-06 19:46:02 +00:00
|
|
|
sha256 = "LFUzrGHr8jmUqoIcKokC0gNDVmW1EUZlj9eI+GDycvI=";
|
2019-05-27 03:26:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook
|
2022-09-06 20:38:15 +00:00
|
|
|
gobject-introspection
|
2019-05-27 03:26:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
poppler_gi
|
2021-07-31 19:29:25 +00:00
|
|
|
] ++ lib.optional withGstreamer libcanberra-gtk3;
|
2019-05-27 03:26:26 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pycairo
|
|
|
|
pygobject3
|
2021-07-31 19:29:25 +00:00
|
|
|
setuptools
|
2019-05-27 03:26:26 +00:00
|
|
|
watchdog
|
2021-07-31 19:29:25 +00:00
|
|
|
] ++ lib.optional withVLC python-vlc;
|
2019-05-27 03:26:26 +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;
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://cimbali.github.io/pympress/";
|
2019-05-27 03:26:26 +00:00
|
|
|
maintainers = [ maintainers.tbenst ];
|
|
|
|
};
|
|
|
|
}
|