@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib }:
1+{ stdenv, fetchurl, python, buildPythonPackage, pkgconfig, glib, isPy3k }:
22
33buildPythonPackage rec {
44 pname = "pygobject";
@@ -25,7 +25,7 @@ buildPythonPackage rec {
2525 # same site-packages: we need a pth file for both. pygtk.py would be
2626 # used to select a specific version, in our setup it should have no
2727 # effect, but we leave it in case somebody expects and calls it.
28− postInstall = ''
28+ postInstall = stdenv.lib.optionalString (!isPy3k) ''
2929 mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${pname}-${version}.pth}
3030
3131 # Prevent wrapping of codegen files as these are meant to be