2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2018-10-17 20:16:47 +02:00
|
|
|
, fetchurl
|
|
|
|
, python
|
|
|
|
, pygobject2
|
|
|
|
, pygtk
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "python-notify";
|
2018-10-17 20:16:47 +02:00
|
|
|
version = "0.1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "http://www.galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.bz2";
|
2018-10-17 20:16:47 +02:00
|
|
|
sha256 = "1kh4spwgqxm534qlzzf2ijchckvs0pwjxl1irhicjmlg7mybnfvx";
|
|
|
|
};
|
|
|
|
|
2021-01-24 01:29:22 +01:00
|
|
|
patches = lib.singleton (fetchurl {
|
2018-10-17 20:16:47 +02:00
|
|
|
name = "libnotify07.patch";
|
2018-11-24 23:53:27 +01:00
|
|
|
url = "https://src.fedoraproject.org/cgit/notify-python.git/plain/"
|
2018-10-17 20:16:47 +02:00
|
|
|
+ "libnotify07.patch?id2=289573d50ae4838a1658d573d2c9f4c75e86db0c";
|
|
|
|
sha256 = "1lqdli13mfb59xxbq4rbq1f0znh6xr17ljjhwmzqb79jl3dig12z";
|
|
|
|
});
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/^PYGTK_CODEGEN/s|=.*|="${pygtk}/bin/pygtk-codegen-2.0"|' \
|
|
|
|
configure
|
|
|
|
'';
|
|
|
|
|
2021-03-16 19:30:51 +01:00
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ];
|
2018-10-17 20:16:47 +02:00
|
|
|
buildInputs = [ python pygobject2 pygtk pkgs.libnotify pkgs.glib pkgs.gtk2 pkgs.dbus-glib ];
|
|
|
|
|
|
|
|
postInstall = "cd $out/lib/python*/site-packages && ln -s gtk-*/pynotify .";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-17 20:16:47 +02:00
|
|
|
description = "Python bindings for libnotify";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.galago-project.org/";
|
2018-10-17 20:16:47 +02:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|