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: , tornado
  , urwid
  , wsproto
  , publicsuffix2
  , zstandard
  # Additional check requirements
  , beautifulsoup4
  , glibcLocales
  , pytest
  , requests
  , asynctest
  , parver
  , pytest-asyncio
  , hypothesis
  , asgiref
  , msgpack
  }:
  
  buildPythonPackage rec {
  
negative.code: { lib
  , stdenv
  , fetchFromGitHub
  , buildPythonPackage
  , pythonOlder
    # Mitmproxy requirements
  , asgiref
  , blinker
  , brotli
  , certifi
  , click
  , cryptography
  , flask
  , h11
  , h2
  , hyperframe
  , kaitaistruct
  , ldap3
  , msgpack
  , passlib
  , protobuf
  , publicsuffix2
  , pyasn1
  , pyopenssl
  , pyparsing
  