Merge pull request #67894 from marzipankaiser/caffeine-ng

caffeine-ng: use python3 and some other improvements
This commit is contained in:
Florian Klink 2019-09-05 12:27:00 -07:00 committed by GitHub
commit 0213ccf624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,27 @@
{ gdk-pixbuf, glib, gobject-introspection, gtk3, lib, libnotify, { gdk-pixbuf, glib, gobject-introspection, gtk3, lib, libnotify,
pythonPackages, wrapGAppsHook python3Packages, wrapGAppsHook
}: }:
pythonPackages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "caffeine-ng"; pname = "caffeine-ng";
version = "3.4.2"; version = "3.4.2";
src = pythonPackages.fetchPypi{ src = python3Packages.fetchPypi{
inherit pname version; inherit pname version;
sha256="05k8smjlfjcccgmp8qi04l7106k46fs4p8fl5bdqqjwv6pwl7y4w"; sha256="05k8smjlfjcccgmp8qi04l7106k46fs4p8fl5bdqqjwv6pwl7y4w";
}; };
nativeBuildInputs = [ wrapGAppsHook glib ]; nativeBuildInputs = [ wrapGAppsHook glib ];
buildInputs = [ gdk-pixbuf gobject-introspection libnotify gtk3 ]; buildInputs = [
pythonPath = with pythonPackages; [ gdk-pixbuf gobject-introspection libnotify gtk3
dbus-python docopt ewmh pygobject3 pyxdg python3Packages.setuptools_scm
setproctitle setuptools setuptools_scm wheel
]; ];
pythonPath = with python3Packages; [
dbus-python docopt ewmh pygobject3 pyxdg
setproctitle
];
doCheck = false; # There are no tests.
postBuild = '' postBuild = ''
mkdir -p $out/share mkdir -p $out/share