anchor.diff: -{ stdenv, fetchpatch, fetchFromGitHub, python3Packages }:
  +{ stdenv, fetchpatch, fetchFromGitHub, python3Packages, glibcLocales }:
   
   python3Packages.buildPythonPackage rec {
     baseName = "mitmproxy";
  
positive.code:   ];
  
    buildInputs = with python3Packages; [
      beautifulsoup4 flask pytz pytest pytestrunner protobuf3_2
    ];
  
    meta = with stdenv.lib; {
  
negative.code: 
    checkPhase = ''
      export HOME=$(mktemp -d)
      # test_echo resolves hostnames
      LC_CTYPE=en_US.UTF-8 pytest -k 'not test_echo'
    '';
  
    propagatedBuildInputs = with python3Packages; [
  