anchor.diff:  { lib
   , buildPythonPackage
  -, fetchFromGitLab
  +, fetchFromGitHub
   , pythonOlder
   , typing-extensions
   , wsproto
  
positive.code: , mock
  , poetry-core
  , pytest-asyncio
  , pytest-cov
  , pytest-sugar
  , pytest-trio
  , pytestCheckHook
  }:
  
  buildPythonPackage rec {
    pname = "Hypercorn";
    version = "0.13.2";
    disabled = pythonOlder "3.7";
    format = "pyproject";
  
    src = fetchFromGitLab {
      owner = "pgjones";
      repo = pname;
      rev = version;
      sha256 = "sha256-fIjw5A6SvFUv8cU7xunVlPYphv+glypY4pzvHNifYLQ=";
    };
  
    nativeBuildInputs = [
      poetry-core
  
negative.code: 
    checkInputs = [
      pytest-asyncio
      pytest-trio
      pytestCheckHook
    ] ++ lib.optionals (pythonOlder "3.8") [ mock ];
  
    pythonImportsCheck = [ "hypercorn" ];
  
    meta = with lib; {
      homepage = "https://github.com/pgjones/hypercorn";
      description = "The ASGI web server inspired by Gunicorn";
      license = licenses.mit;
      maintainers = with maintainers; [ dgliwka ];
  