1{ stdenv, fetchurl, python, pkgconfig, glib }:
2
3stdenv.mkDerivation rec {
4 name = "pygobject-2.28.6";
5
6 src = fetchurl {
7 url = "mirror://gnome/sources/pygobject/2.28/${name}.tar.xz";
8 sha256 = "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv";
9 };
10
11 outputs = [ "out" "doc" ];
12
13 configureFlags = "--disable-introspection";
14
15 buildInputs = [ python pkgconfig glib ];
16
17 # in a "normal" setup, pygobject and pygtk are installed into the
18 # same site-packages: we need a pth file for both. pygtk.py would be
19 # used to select a specific version, in our setup it should have no
20 # effect, but we leave it in case somebody expects and calls it.
21 postInstall = ''
22 mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${name}.pth}
23 '';
24
25 meta = {
26 homepage = http://live.gnome.org/PyGObject;
27 description = "Python bindings for Glib";
28 };
29}