2010-10-19 00:55:20 +02:00
|
|
|
{ stdenv, fetchurl, python, pkgconfig, glib }:
|
2007-05-13 22:12:13 +02:00
|
|
|
|
2010-10-19 00:55:20 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2010-11-19 05:09:22 +01:00
|
|
|
name = "pygobject-2.27.0";
|
2010-10-19 00:55:20 +02:00
|
|
|
|
2007-05-13 22:12:13 +02:00
|
|
|
src = fetchurl {
|
2010-11-19 05:09:22 +01:00
|
|
|
url = "http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.27/${name}.tar.bz2";
|
|
|
|
sha256 = "18mq4mj9s9sw12m6gbbc4iffrq993c7q09v9yahlnamrqn3bv53m";
|
2007-05-13 22:12:13 +02:00
|
|
|
};
|
|
|
|
|
2010-10-19 00:55:20 +02:00
|
|
|
configureFlags = "--disable-introspection";
|
|
|
|
|
|
|
|
buildInputs = [ python pkgconfig glib ];
|
2010-09-03 15:18:38 +02:00
|
|
|
|
2013-01-11 16:11:07 +01:00
|
|
|
# in a "normal" setup, pygobject and pygtk are installed into the
|
|
|
|
# same site-packages: we need a pth file for both. pygtk.py would be
|
|
|
|
# used to select a specific version, in our setup it should have no
|
|
|
|
# effect, but we leave it in case somebody expects and calls it.
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${name}.pth}
|
|
|
|
'';
|
|
|
|
|
2010-10-19 00:55:20 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://live.gnome.org/PyGObject;
|
|
|
|
description = "Python bindings for Glib";
|
|
|
|
};
|
2007-05-13 22:12:13 +02:00
|
|
|
}
|