about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pygobject
diff options
context:
space:
mode:
authorKarn Kallio <tierpluspluslists@skami.org>2016-09-02 15:34:25 -0400
committerShea Levy <shea@shealevy.com>2016-09-02 15:58:24 -0400
commitce3daae51a8c0ef38b0c59a4e672ccdd7b1e7e58 (patch)
tree54ab0761b85718af117cfb441cf335ae645b0af5 /pkgs/development/python-modules/pygobject
parent67f2a005f6088c985489d1e42faf8478102ef13f (diff)
pygobject
In the pygobject package of pythonPackages the codegen python files are
executable and get wrapped, which causes pygtk to not build because it
uses the python program to execute them.  The attached patch makes them
not executable so they do not get wrapped and cause pygtk to fail its
build.

From 931b7998658fa72323c9a76e7b336fe726a9cc61 Mon Sep 17 00:00:00 2001
From: Karn Kallio <kkallio@skami.org>
Date: Fri, 2 Sep 2016 15:30:42 -0400
Subject: [PATCH] pygobject: prevent wrapping of codegen/*.py files.
Diffstat (limited to 'pkgs/development/python-modules/pygobject')
-rw-r--r--pkgs/development/python-modules/pygobject/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pygobject/default.nix b/pkgs/development/python-modules/pygobject/default.nix
index 5c9367a1f460f..7f2bd63dc24de 100644
--- a/pkgs/development/python-modules/pygobject/default.nix
+++ b/pkgs/development/python-modules/pygobject/default.nix
@@ -26,6 +26,10 @@ mkPythonDerivation rec {
   # effect, but we leave it in case somebody expects and calls it.
   postInstall = ''
     mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${name}.pth}
+
+    # Prevent wrapping of codegen files as these are meant to be
+    # executed by the python program
+    chmod a-x $out/share/pygobject/*/codegen/*.py
   '';
 
   meta = {