mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
pythonPackages.notify: refactor move to python-modules
This commit is contained in:
parent
3c5edb16a7
commit
e789672945
41
pkgs/development/python-modules/notify/default.nix
Normal file
41
pkgs/development/python-modules/notify/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, python
|
||||
, pygobject2
|
||||
, pygtk
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "python-notify-${version}";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://www.galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.bz2;
|
||||
sha256 = "1kh4spwgqxm534qlzzf2ijchckvs0pwjxl1irhicjmlg7mybnfvx";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.singleton (fetchurl {
|
||||
name = "libnotify07.patch";
|
||||
url = "http://src.fedoraproject.org/cgit/notify-python.git/plain/"
|
||||
+ "libnotify07.patch?id2=289573d50ae4838a1658d573d2c9f4c75e86db0c";
|
||||
sha256 = "1lqdli13mfb59xxbq4rbq1f0znh6xr17ljjhwmzqb79jl3dig12z";
|
||||
});
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/^PYGTK_CODEGEN/s|=.*|="${pygtk}/bin/pygtk-codegen-2.0"|' \
|
||||
configure
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = [ python pygobject2 pygtk pkgs.libnotify pkgs.glib pkgs.gtk2 pkgs.dbus-glib ];
|
||||
|
||||
postInstall = "cd $out/lib/python*/site-packages && ln -s gtk-*/pynotify .";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python bindings for libnotify";
|
||||
homepage = http://www.galago-project.org/;
|
||||
license = licenses.lgpl3;
|
||||
};
|
||||
|
||||
}
|
@ -2938,36 +2938,7 @@ in {
|
||||
|
||||
notebook = callPackage ../development/python-modules/notebook { };
|
||||
|
||||
notify = pkgs.stdenv.mkDerivation (rec {
|
||||
name = "python-notify-0.1.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = http://www.galago-project.org/files/releases/source/notify-python/notify-python-0.1.1.tar.bz2;
|
||||
sha256 = "1kh4spwgqxm534qlzzf2ijchckvs0pwjxl1irhicjmlg7mybnfvx";
|
||||
};
|
||||
|
||||
patches = singleton (pkgs.fetchurl {
|
||||
name = "libnotify07.patch";
|
||||
url = "http://src.fedoraproject.org/cgit/notify-python.git/plain/"
|
||||
+ "libnotify07.patch?id2=289573d50ae4838a1658d573d2c9f4c75e86db0c";
|
||||
sha256 = "1lqdli13mfb59xxbq4rbq1f0znh6xr17ljjhwmzqb79jl3dig12z";
|
||||
});
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/^PYGTK_CODEGEN/s|=.*|="${self.pygtk}/bin/pygtk-codegen-2.0"|' \
|
||||
configure
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ pkgs.pkgconfig ];
|
||||
buildInputs = with self; [ python pkgs.libnotify pygobject2 pygtk pkgs.glib pkgs.gtk2 pkgs.dbus-glib ];
|
||||
|
||||
postInstall = "cd $out/lib/python*/site-packages && ln -s gtk-*/pynotify .";
|
||||
|
||||
meta = {
|
||||
description = "Python bindings for libnotify";
|
||||
homepage = http://www.galago-project.org/;
|
||||
};
|
||||
});
|
||||
notify = callPackage ../development/python-modules/notify { };
|
||||
|
||||
notify2 = callPackage ../development/python-modules/notify2 {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user