From 549c14606efe85fc40dc1ea2d7aaa4ac71a0d60c Mon Sep 17 00:00:00 2001
From: James Wood <jammyatjammy@gmail.com>
Date: Sun, 2 Jun 2019 00:30:20 +0100
Subject: [PATCH] ibus-engines.table: remove hacky change to source code

Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
---
 .../ibus-engines/ibus-table/default.nix           | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix b/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
index a0afb9d3355d..88dcabd11f5c 100644
--- a/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
+++ b/pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
@@ -30,7 +30,14 @@ stdenv.mkDerivation rec {
   '';
 
   buildInputs = [
-    dconf gtk3 gobject-introspection ibus (python3.withPackages (pypkgs: with pypkgs; [ pygobject3 ]))
+    dconf
+    gtk3
+    gobject-introspection
+    ibus
+    (python3.withPackages (pypkgs: with pypkgs; [
+      pygobject3
+      (toPythonModule ibus)
+    ]))
   ];
 
   nativeBuildInputs = [
@@ -46,12 +53,6 @@ stdenv.mkDerivation rec {
       --replace "docbook2man" "docbook2man --sgml"
   '';
 
-  postFixup = ''
-    wrapPythonPrograms
-    sed -e 's/LookupTable/LookupTable.new/' \
-        -i "$out/share/ibus-table/engine/table.py"
-  '';
-
   meta = with stdenv.lib; {
     isIbusEngine = true;
     description  = "An IBus framework for table-based input methods";