depot/third_party/nixpkgs/pkgs/applications/office/pympress/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

49 lines
1,018 B
Nix

{ lib
, stdenv
, python3Packages
, fetchPypi
, wrapGAppsHook
, gtk3
, gobject-introspection
, libcanberra-gtk3
, poppler_gi
, withGstreamer ? stdenv.isLinux
, withVLC ? stdenv.isLinux
}:
python3Packages.buildPythonApplication rec {
pname = "pympress";
version = "1.8.4";
src = fetchPypi {
inherit version;
pname = "pympress";
hash = "sha256-3cnCHGoKUX0gTzIx1khM+br6x9+g9WXh28SLhm99eN4=";
};
nativeBuildInputs = [
wrapGAppsHook
gobject-introspection
];
buildInputs = [
gtk3
poppler_gi
] ++ lib.optional withGstreamer libcanberra-gtk3;
propagatedBuildInputs = with python3Packages; [
pycairo
pygobject3
setuptools
watchdog
] ++ lib.optional withVLC python-vlc;
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 ];
};
}