about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/turses
diff options
context:
space:
mode:
authorIhar Hrachyshka <ihar@redhat.com>2019-03-11 15:35:11 -0700
committerIhar Hrachyshka <ihar@redhat.com>2019-03-11 15:39:39 -0700
commit6f525a52d0e4a172397450ff11afa3f47e29442c (patch)
tree5fbc8bb84528fb1ee4820f317e72e2ef03bfd065 /pkgs/applications/networking/instant-messengers/turses
parentc59d2d3419b11e6cd9a404d849451f1be6f2afe8 (diff)
turses: fix crash when starting with existing config file
Fixes #57460
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/turses')
-rw-r--r--pkgs/applications/networking/instant-messengers/turses/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/networking/instant-messengers/turses/default.nix b/pkgs/applications/networking/instant-messengers/turses/default.nix
index 321e1bb923162..24529d83e04c7 100644
--- a/pkgs/applications/networking/instant-messengers/turses/default.nix
+++ b/pkgs/applications/networking/instant-messengers/turses/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, python36Packages }:
+{ stdenv, fetchpatch, python36Packages }:
 
 with stdenv.lib;
 
@@ -19,6 +19,13 @@ buildPythonPackage rec {
   checkInputs = [ mock pytest coverage tox ];
   propagatedBuildInputs = [ urwid tweepy future ];
 
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/louipc/turses/commit/be0961b51f502d49fd9e2e5253ac130e543a31c7.patch";
+      sha256 = "17s1n0275mcj03vkf3n39dmc09niwv4y7ssrfk7k3vqx22kppzg3";
+    })
+  ];
+
   checkPhase = ''
     TMP_TURSES=`echo turses-$RANDOM`
     mkdir $TMP_TURSES
@@ -26,7 +33,7 @@ buildPythonPackage rec {
     rm -rf $TMP_TURSES
   '';
 
-  patchPhase = ''
+  postPatch = ''
     sed -i -e 's|urwid==1.3.0|urwid==${getVersion urwid}|' setup.py
     sed -i -e "s|future==0.14.3|future==${getVersion future}|" setup.py
     sed -i -e "s|tweepy==3.3.0|tweepy==${getVersion tweepy}|" setup.py