2010-10-18 15:55:20 -07:00
|
|
|
{ stdenv, fetchurl, python, pkgconfig, glib }:
|
2007-05-13 13:12:13 -07:00
|
|
|
|
2010-10-18 15:55:20 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2013-03-06 14:25:46 -08:00
|
|
|
name = "pygobject-2.28.6";
|
2010-10-18 15:55:20 -07:00
|
|
|
|
2007-05-13 13:12:13 -07:00
|
|
|
src = fetchurl {
|
2013-07-13 19:23:06 -07:00
|
|
|
url = "mirror://gnome/sources/pygobject/2.28/${name}.tar.xz";
|
2013-03-06 14:25:46 -08:00
|
|
|
sha256 = "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv";
|
2007-05-13 13:12:13 -07:00
|
|
|
};
|
|
|
|
|
2015-10-28 10:56:00 -07:00
|
|
|
outputs = [ "out" "docdev" ];
|
2015-07-26 04:43:49 -07:00
|
|
|
|
2010-10-18 15:55:20 -07:00
|
|
|
configureFlags = "--disable-introspection";
|
|
|
|
|
|
|
|
buildInputs = [ python pkgconfig glib ];
|
2010-09-03 06:18:38 -07:00
|
|
|
|
2013-01-11 07:11:07 -08: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-18 15:55:20 -07:00
|
|
|
meta = {
|
|
|
|
homepage = http://live.gnome.org/PyGObject;
|
|
|
|
description = "Python bindings for Glib";
|
|
|
|
};
|
2007-05-13 13:12:13 -07:00
|
|
|
}
|