anchor.diff:      })
     ];
   
  +  postPatch = ''
  +    substituteInPlace setup.py \
  +      --replace "urwid==1.3.0" "urwid" \
  +      --replace "future==0.14.3" "future" \
  +      --replace "tweepy==3.3.0" "tweepy"
  +    substituteInPlace tests/test_config.py \
  +      --replace "config.generate_config_file.assert_called_once()" "assert config.generate_config_file.call_count == 1"
  +    substituteInPlace tests/test_meta.py \
  +      --replace "self.observer.update.assert_called_once()" "assert self.observer.update.call_count == 1"
  +  '';
  +
     checkPhase = ''
       TMP_TURSES=`echo turses-$RANDOM`
       mkdir $TMP_TURSES
  
positive.code: { lib, fetchpatch, python3Packages }:
  
  with lib;
  with python3Packages;
  
  buildPythonPackage rec {
    pname = "turses";
  
negative.code:     rm -rf $TMP_TURSES
    '';
  
    meta = with lib; {
      description = "A Twitter client for the console";
      homepage = "https://github.com/louipc/turses";
      license = licenses.gpl3Only;
      maintainers = with maintainers; [ ];
      platforms = platforms.unix;
    };
  