From 579082350c24647dececfef3b58da7348068dcc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cillian=20de=20R=C3=B3iste?= <goibhniu@fsfe.org> Date: Fri, 15 Mar 2013 01:06:55 +0100 Subject: [PATCH] pygobject, revert accidental change I suspect we don't need the postInstall step which moves pygtk.pth to pygobject.pth any more, but I didn't mean to include it in this change set --- pkgs/development/python-modules/pygobject/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/pygobject/default.nix b/pkgs/development/python-modules/pygobject/default.nix index d85045401373..8d6a1368d8b0 100644 --- a/pkgs/development/python-modules/pygobject/default.nix +++ b/pkgs/development/python-modules/pygobject/default.nix @@ -12,6 +12,14 @@ stdenv.mkDerivation rec { buildInputs = [ python pkgconfig glib ]; + # 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} + ''; + meta = { homepage = http://live.gnome.org/PyGObject; description = "Python bindings for Glib";