1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/tools/X11/caffeine-ng/default.nix
Marcial Gaißert 85c084d88d
caffeine-ng: use python3
Using python3 is recommended by upstream.
2019-09-01 21:08:33 +02:00

37 lines
1 KiB
Nix

{ gdk-pixbuf, glib, gobject-introspection, gtk3, lib, libnotify,
python3Packages, wrapGAppsHook
}:
python3Packages.buildPythonApplication rec {
pname = "caffeine-ng";
version = "3.4.2";
src = python3Packages.fetchPypi{
inherit pname version;
sha256="05k8smjlfjcccgmp8qi04l7106k46fs4p8fl5bdqqjwv6pwl7y4w";
};
nativeBuildInputs = [ wrapGAppsHook glib ];
buildInputs = [ gdk-pixbuf gobject-introspection libnotify gtk3 ];
pythonPath = with python3Packages; [
dbus-python docopt ewmh pygobject3 pyxdg
setproctitle setuptools setuptools_scm wheel
];
doCheck = false; # There are no tests.
postBuild = ''
mkdir -p $out/share
cp -r share $out/
glib-compile-schemas --strict $out/share/glib-2.0/schemas
'';
meta = with lib; {
maintainers = with maintainers; [ marzipankaiser ];
description = "Status bar application to temporarily inhibit screensaver and sleep mode";
homepage = "https://github.com/caffeine-ng/caffeine-ng";
license = licenses.gpl3;
platforms = platforms.linux;
};
}