mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
49 lines
995 B
Nix
49 lines
995 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.7.2";
|
|
|
|
src = 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 ];
|
|
};
|
|
}
|