anchor.diff:    propagatedBuildInputs = [
       setuptools
       # setup.py
  +    asgiref
       blinker
       brotli
       certifi
  
positive.code:     hyperframe
      kaitaistruct
      ldap3
      passlib
      protobuf
      publicsuffix2
  
negative.code: , parver
  , pytest-asyncio
  , hypothesis
  , asgiref
  , msgpack
  }:
  
  buildPythonPackage rec {
    pname = "mitmproxy";
    version = "5.3.0";
    disabled = isPy27;
  
    src = fetchFromGitHub {
      owner  = pname;
      repo   = pname;
      rev    = "v${version}";
      sha256 = "04y7fxxssrs14i7zl7fwlwrpnms39i7a6m18481sg8vlrkbagxjr";
    };
  
    postPatch = ''
      # remove dependency constraints
      sed 's/>=\([0-9]\.\?\)\+\( \?, \?<\([0-9]\.\?\)\+\)\?\( \?, \?!=\([0-9]\.\?\)\+\)\?//' -i setup.py
    '';
  
    doCheck = (!stdenv.isDarwin);
  