anchor.diff:  { lib, fetchFromGitHub, python3Packages, file, less, highlight
  -, imagePreviewSupport ? true, w3m ? null}:
  -
  -with lib;
  -
  -assert imagePreviewSupport -> w3m != null;
  +, imagePreviewSupport ? true, w3m }:
   
   python3Packages.buildPythonApplication rec {
  -  name = "ranger-${version}";
  +  pname = "ranger";
     version = "1.9.3";
   
     src = fetchFromGitHub {
  
positive.code: 
    LC_ALL = "en_US.UTF-8";
  
    checkInputs = with python3Packages; [ pytest ];
    propagatedBuildInputs = [ file ]
      ++ lib.optionals (imagePreviewSupport) [ python3Packages.pillow ];
  
    checkPhase = ''
      py.test tests
    '';
  
    preConfigure = ''
      ${lib.optionalString (highlight != null) ''
  
negative.code:   meta =  with lib; {
      description = "File manager with minimalistic curses interface";
      homepage = "http://ranger.github.io/";
      license = licenses.gpl3Only;
      platforms = platforms.unix;
      maintainers = with maintainers; [ toonn magnetophon ];
    };
  }
  