Skip to content

Commit

Permalink
Merge pull request #67894 from marzipankaiser/caffeine-ng
Browse files Browse the repository at this point in the history
caffeine-ng: use python3 and some other improvements
  • Loading branch information
flokli authored Sep 5, 2019
2 parents 5aa5760 + d64cdba commit 0213ccf
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pkgs/tools/X11/caffeine-ng/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
{ gdk-pixbuf, glib, gobject-introspection, gtk3, lib, libnotify,
pythonPackages, wrapGAppsHook
python3Packages, wrapGAppsHook
}:

pythonPackages.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "caffeine-ng";
version = "3.4.2";

src = pythonPackages.fetchPypi{
src = python3Packages.fetchPypi{
inherit pname version;
sha256="05k8smjlfjcccgmp8qi04l7106k46fs4p8fl5bdqqjwv6pwl7y4w";
};

nativeBuildInputs = [ wrapGAppsHook glib ];
buildInputs = [ gdk-pixbuf gobject-introspection libnotify gtk3 ];
pythonPath = with pythonPackages; [
buildInputs = [
gdk-pixbuf gobject-introspection libnotify gtk3
python3Packages.setuptools_scm
];
pythonPath = with python3Packages; [
dbus-python docopt ewmh pygobject3 pyxdg
setproctitle setuptools setuptools_scm wheel
setproctitle
];

doCheck = false; # There are no tests.

postBuild = ''
mkdir -p $out/share
cp -r share $out/
Expand Down

0 comments on commit 0213ccf

Please sign in to comment.