2019-03-03 22:30:31 +01:00
|
|
|
{ stdenv, fetchurl, python2, pkgconfig, libgnome, GConf, glib, gtk2, gnome_vfs }:
|
2012-05-22 00:46:40 +02:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
2016-08-16 22:51:21 +02:00
|
|
|
let
|
2016-12-20 22:36:41 +01:00
|
|
|
inherit (python2.pkgs) python pygobject2 pygtk dbus-python;
|
2016-08-16 22:51:21 +02:00
|
|
|
in stdenv.mkDerivation rec {
|
2012-05-22 00:46:40 +02:00
|
|
|
version = "2.28";
|
|
|
|
name = "gnome-python-${version}.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 04:23:06 +02:00
|
|
|
url = "mirror://gnome/sources/gnome-python/${version}/${name}.tar.bz2";
|
2012-05-22 00:46:40 +02:00
|
|
|
sha256 = "759ce9344cbf89cf7f8449d945822a0c9f317a494f56787782a901e4119b96d8";
|
|
|
|
};
|
|
|
|
|
2016-12-20 22:36:41 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-03-03 22:30:31 +01:00
|
|
|
buildInputs = [ python glib gtk2 GConf libgnome gnome_vfs ];
|
2016-12-20 22:36:41 +01:00
|
|
|
propagatedBuildInputs = [ pygobject2 pygtk dbus-python ];
|
2012-05-22 00:46:40 +02:00
|
|
|
|
2016-12-20 22:36:41 +01:00
|
|
|
# gnome-python expects that .pth file is already installed by PyGTK in the
|
|
|
|
# same directory. This is not the case for Nix.
|
|
|
|
postInstall = ''
|
|
|
|
echo "gtk-2.0" > $out/${python2.sitePackages}/${name}.pth
|
2012-05-22 00:46:40 +02:00
|
|
|
'';
|
|
|
|
|
2016-12-20 22:36:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://pygtk.org/;
|
2016-12-20 22:36:41 +01:00
|
|
|
description = "Python wrapper for GNOME libraries";
|
|
|
|
platforms = platforms.linux;
|
2017-04-29 06:24:34 +02:00
|
|
|
license = licenses.lgpl2;
|
2016-12-20 22:36:41 +01:00
|
|
|
maintainers = with maintainers; [ qknight ];
|
2012-05-22 00:46:40 +02:00
|
|
|
};
|
2012-07-21 01:27:24 +02:00
|
|
|
}
|