2017-03-21 12:01:17 +00:00
|
|
|
{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib }:
|
2007-05-13 20:12:13 +00:00
|
|
|
|
2017-03-21 12:01:17 +00:00
|
|
|
buildPythonPackage rec {
|
2016-09-04 07:39:17 +00:00
|
|
|
name = "pygobject-${version}";
|
|
|
|
version = "2.28.6";
|
2017-03-21 20:58:57 +00:00
|
|
|
format = "other";
|
2016-09-04 07:39:17 +00:00
|
|
|
|
2007-05-13 20:12:13 +00:00
|
|
|
src = fetchurl {
|
2013-07-14 02:23:06 +00:00
|
|
|
url = "mirror://gnome/sources/pygobject/2.28/${name}.tar.xz";
|
2013-03-06 22:25:46 +00:00
|
|
|
sha256 = "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv";
|
2007-05-13 20:12:13 +00:00
|
|
|
};
|
|
|
|
|
2016-09-01 09:07:23 +00:00
|
|
|
outputs = [ "out" "devdoc" ];
|
2015-07-26 11:43:49 +00:00
|
|
|
|
2016-04-16 03:23:57 +00:00
|
|
|
patches = [
|
|
|
|
# Fix warning spam
|
|
|
|
./pygobject-2.28.6-set_qdata.patch
|
|
|
|
./pygobject-2.28.6-gio-types-2.32.patch
|
|
|
|
];
|
|
|
|
|
2010-10-18 22:55:20 +00:00
|
|
|
configureFlags = "--disable-introspection";
|
|
|
|
|
2016-08-31 09:01:16 +00:00
|
|
|
buildInputs = [ pkgconfig glib ];
|
2016-05-14 01:04:41 +00:00
|
|
|
|
2013-01-11 15:11:07 +00: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}
|
2016-09-02 19:34:25 +00:00
|
|
|
|
|
|
|
# Prevent wrapping of codegen files as these are meant to be
|
|
|
|
# executed by the python program
|
|
|
|
chmod a-x $out/share/pygobject/*/codegen/*.py
|
2013-01-11 15:11:07 +00:00
|
|
|
'';
|
|
|
|
|
2010-10-18 22:55:20 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://live.gnome.org/PyGObject;
|
|
|
|
description = "Python bindings for Glib";
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-10-18 22:55:20 +00:00
|
|
|
};
|
2007-05-13 20:12:13 +00:00
|
|
|
}
|