Skip to content

Commit

Permalink
turses: fix crash when starting with existing config file
Browse files Browse the repository at this point in the history
Fixes #57460
  • Loading branch information
booxter committed Mar 11, 2019
1 parent c59d2d3 commit 6f525a5
Showing 1 changed file with 9 additions and 2 deletions.
@@ -1,4 +1,4 @@
{ stdenv, python36Packages }:
{ stdenv, fetchpatch, python36Packages }:

with stdenv.lib;

Expand All @@ -19,14 +19,21 @@ 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
PYTHONPATH=tests:$PYTHONPATH HOME=$TMP_TURSES py.test tests/
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
Expand Down

0 comments on commit 6f525a5

Please sign in to comment.