2014-08-30 14:56:22 +01:00
|
|
|
{ stdenv, fetchurl, python, pkgconfig, libgnome, GConf, pygobject, pygtk, glib, gtk, pythonDBus, gnome_vfs}:
|
2012-05-21 23:46:40 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.28";
|
|
|
|
name = "gnome-python-${version}.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-07-14 03:23:06 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-python/${version}/${name}.tar.bz2";
|
2012-05-21 23:46:40 +01:00
|
|
|
sha256 = "759ce9344cbf89cf7f8449d945822a0c9f317a494f56787782a901e4119b96d8";
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = "unpackPhase configurePhase buildPhase installPhase";
|
|
|
|
|
2012-07-21 00:27:24 +01:00
|
|
|
# WAF is probably the biggest crap on this planet, btw i removed the /gtk-2.0 path thingy
|
2012-05-21 23:46:40 +01:00
|
|
|
configurePhase = ''
|
2012-11-11 17:03:35 +00:00
|
|
|
sed -e "s@{PYTHONDIR}/gtk-2.0@{PYTHONDIR}/@" -i gconf/wscript
|
|
|
|
python waf configure --prefix=$out
|
2012-05-21 23:46:40 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python waf build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python waf install
|
2012-11-11 17:03:35 +00:00
|
|
|
cp bonobo/*.{py,defs} $out/share/pygtk/2.0/defs/
|
2012-05-21 23:46:40 +01:00
|
|
|
'';
|
|
|
|
|
2014-08-30 14:56:22 +01:00
|
|
|
buildInputs = [ python pkgconfig pygobject pygtk glib gtk GConf libgnome pythonDBus gnome_vfs ];
|
2012-05-21 23:46:40 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://projects.gnome.org/gconf/";
|
|
|
|
description = "Python wrapper for gconf";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.qknight ];
|
|
|
|
};
|
2012-07-21 00:27:24 +01:00
|
|
|
}
|