Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / office / pympress / default.nix
blob42ff825d3655218d510f91837991603d66c25d03
1 { lib
2 , stdenv
3 , python3Packages
4 , fetchPypi
5 , wrapGAppsHook
6 , gtk3
7 , gobject-introspection
8 , libcanberra-gtk3
9 , poppler_gi
10 , withGstreamer ? stdenv.isLinux
11 , withVLC ? stdenv.isLinux
14 python3Packages.buildPythonApplication rec {
15   pname = "pympress";
16   version = "1.8.4";
18   src = fetchPypi {
19     inherit version;
20     pname = "pympress";
21     hash = "sha256-3cnCHGoKUX0gTzIx1khM+br6x9+g9WXh28SLhm99eN4=";
22   };
24   nativeBuildInputs = [
25     wrapGAppsHook
26     gobject-introspection
27   ];
29   buildInputs = [
30     gtk3
31     poppler_gi
32   ] ++ lib.optional withGstreamer libcanberra-gtk3;
34   propagatedBuildInputs = with python3Packages; [
35     pycairo
36     pygobject3
37     setuptools
38     watchdog
39   ] ++ lib.optional withVLC python-vlc;
41   doCheck = false; # there are no tests
43   meta = with lib; {
44     description = "Simple yet powerful PDF reader designed for dual-screen presentations";
45     license = licenses.gpl2Plus;
46     homepage = "https://cimbali.github.io/pympress/";
47     maintainers = [ maintainers.tbenst ];
48   };