anchor.diff:      patchShebangs .
     '';
   
  -  doCheck = !stdenv.isDarwin;
  +  disabledTests = [
  +    # fails on sandbox
  +    "test_colorize_file"
  +    "test_loading_correctly"
  +    "test_no_command_path_completion"
  +    # fails on non-interactive shells
  +    "test_capture_always"
  +    "test_casting"
  +    "test_command_pipeline_capture"
  +    "test_dirty_working_directory"
  +    "test_man_completion"
  +    "test_vc_get_branch"
  +  ];
   
  -  checkPhase = ''
  -    HOME=$TMPDIR pytest -k 'not test_repath_backslash and not test_os and not test_man_completion and not test_builtins and not test_main and not test_ptk_highlight and not test_pyghooks and not test_command_pipeline_capture and not test_git_dirty_working_directory_includes_untracked and not test_dirty_working_directory and not test_vc_get_branch'
  -    HOME=$TMPDIR pytest -k 'test_builtins or test_main' --reruns 5
  -    HOME=$TMPDIR pytest -k 'test_ptk_highlight'
  +  disabledTestPaths = [
  +    # fails on non-interactive shells
  +    "tests/prompt/test_gitstatus.py"
  +    "tests/completers/test_bash_completer.py"
  +  ];
  +
  +  preCheck = ''
  +    HOME=$TMPDIR
     '';
   
  -  checkInputs = [ python3Packages.pytest python3Packages.pytest-rerunfailures glibcLocales git ];
  +  checkInputs = [ glibcLocales git ] ++ (with python3Packages; [ pytestCheckHook pytest-subprocess ]);
   
     propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit pygments ];
   
  
positive.code:     changelog = "https://github.com/xonsh/xonsh/raw/${version}/CHANGELOG.rst";
      license = licenses.bsd3;
      maintainers = with maintainers; [ spwhitt vrthra ];
      platforms = platforms.all;
    };
  
    passthru = {
  
negative.code: { lib
  , fetchFromGitHub
  , python3Packages
  , glibcLocales
  