anchor.diff:    disabled = pythonOlder "3.8";
   
     src = fetchFromGitHub {
  -    owner  = pname;
  -    repo   = pname;
  -    rev    = "v${version}";
  +    owner = pname;
  +    repo = pname;
  +    rev = "v${version}";
       sha256 = "sha256-FyIZKFQtf6qvwo4+NzPa/KOmBCcdGJ3jCqxz26+S2e4=";
     };
  -
  -  postPatch = ''
  -    # remove dependency constraints
  -    sed 's/>=\([0-9]\.\?\)\+\( \?, \?<\([0-9]\.\?\)\+\)\?\( \?, \?!=\([0-9]\.\?\)\+\)\?//' -i setup.py
  -  '';
  -
  -  doCheck = (!stdenv.isDarwin);
  -
  -  checkPhase = ''
  -    export HOME=$(mktemp -d)
  -    pytest -k 'not test_get_version' # expects a Git repository
  -  '';
   
     propagatedBuildInputs = [
       setuptools
  
positive.code:   ];
  
    checkInputs = [
      asynctest
      beautifulsoup4
      flask
      glibcLocales
      hypothesis
      parver
      pytest
      pytest-asyncio
      requests
    ];
  
    meta = with lib; {
      description = "Man-in-the-middle proxy";
      homepage    = "https://mitmproxy.org/";
      license     = licenses.mit;
      maintainers = with maintainers; [ fpletz kamilchm ];
    };
  }
  
negative.code: , tornado
  , urwid
  , wsproto
  , zstandard
    # Additional check requirements
  , beautifulsoup4
  , glibcLocales
  , hypothesis
  , parver
  , pytest-asyncio
  , pytest-timeout
  , pytest-xdist
  , pytestCheckHook
  , requests
  }:
  
  buildPythonPackage rec {
  