nixpkgs/pkgs/applications/office/pympress/default.nix
Pol Dellaiera 648bcc8f42
pympress: Move gobject-introspection to nativeBuildInputs
- Previously the software would fail to run with an error showing that
  it couldn't find gobject-introspection typelib files for GTK3
- By adding gobject-introspection to nativeBuildInputs, the gi typelib
  path is set so that we have all of the typelibs we need

Co-authored-by: Skyler Grey <skyler3665@gmail.com>
2022-09-07 01:01:47 +01:00

47 lines
1,000 B
Nix

{ lib
, stdenv
, python3Packages
, wrapGAppsHook
, gtk3
, gobject-introspection
, libcanberra-gtk3
, poppler_gi
, withGstreamer ? stdenv.isLinux
, withVLC ? stdenv.isLinux
}:
python3Packages.buildPythonApplication rec {
pname = "pympress";
version = "1.7.2";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "LFUzrGHr8jmUqoIcKokC0gNDVmW1EUZlj9eI+GDycvI=";
};
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 ];
};
}