summary refs log tree commit diff
path: root/pkgs/applications/office/pympress/default.nix
blob: b4307eb286e58511384e178863ffd93fa5736bcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, python3Packages
, wrapGAppsHook
, xvfb_run
, gtk3
, gobject-introspection
, libcanberra-gtk3
, dbus
, poppler_gi
, python3
 }:

python3Packages.buildPythonApplication rec {
  pname = "pympress";
  version = "1.5.1";

  src = python3Packages.fetchPypi {
    inherit pname version;
    sha256 = "173d9scf2z29qg279jf33zcl7sgc3wp662fgpm943bn9667q18wf";
  };

  nativeBuildInputs = [
    wrapGAppsHook
  ];

  buildInputs = [
    gtk3
    gobject-introspection
    libcanberra-gtk3
    poppler_gi
  ];

  propagatedBuildInputs = with python3Packages; [
    pycairo
    pygobject3
    python-vlc
    watchdog
  ];

  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 ];
  };
}