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,
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; [
dbus-python docopt ewmh pygobject3 pyxdg
setproctitle setuptools setuptools_scm wheel
buildInputs = [
gdk-pixbuf gobject-introspection libnotify gtk3
python3Packages.setuptools_scm
];
pythonPath = with python3Packages; [
dbus-python docopt ewmh pygobject3 pyxdg
setproctitle
];
doCheck = false; # There are no tests.
postBuild = ''
mkdir -p $out/share