anchor.diff:      beautifulsoup4
       gunicorn
       pytest-asyncio
  -    pytest-benchmark
  -    pytest-sugar
       pytestCheckHook
       sanic-testing
       uvicorn
  
positive.code:   ];
  
    disabledTests = [
      # Lack of uvloop setup through fixtures
      "test_create_asyncio_server"
      "test_listeners_triggered_async"
      "test_tls_options"
      # Tests are flaky
      "test_keep_alive_client_timeout"
      "test_check_timeouts_request_timeout"
      "test_check_timeouts_response_timeout"
      "test_reloader_live"
      "test_zero_downtime"
      # Not working from 21.9.1
      "test_create_server_main"
      "test_create_server_main_convenience"
      "test_debug"
      "test_auto_reload"
      "test_no_exceptions_when_cancel_pending_request"
      "test_ipv6_address_is_not_wrapped"
      # Failure of the redirect tests seems to be related to httpx>0.20.0
      "test_redirect"
      "test_chained_redirect"
      "test_unix_connection"
      # These appear to be very sensitive to output of commands
      "test_access_logs"
      "test_auto_reload"
      "test_host_port"
      "test_no_exceptions_when_cancel_pending_request"
      "test_num_workers"
      "test_server_run"
      "test_version"
      # Sensitive comparison of raw HTTP header fails
      "test_raw_headers"
      # noisy_exceptions sometimes missing from sanic stdout
      "test_noisy_exceptions"
    ] ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
      # test fail on aarch64
      "test_tls_wrong_options"
      "test_cookie_expires"
      "test_gunicorn_worker"
      "test_gunicorn_worker_no_logs"
      "test_gunicorn_worker_with_logs"
    ];
  
    disabledTestPaths = [
      # unable to create async loop
      "test_app.py"
      "test_asgi.py"
  
negative.code: 
  buildPythonPackage rec {
    pname = "sanic";
    version = "22.3.2";
    format = "setuptools";
  
    disabled = pythonOlder "3.7";
  
    src = fetchFromGitHub {
      owner = "sanic-org";
      repo = pname;
      rev = "v${version}";
      hash = "sha256-4zdPp3X22dfZ5YlW3G5/OqeUxrt+NiFO9dk2XjEKXEg=";
    };
  
    postPatch = ''
      # Loosen dependency requirements.
      substituteInPlace setup.py \
        --replace "pytest==6.2.5" "pytest" \
        --replace "gunicorn==20.0.4" "gunicorn"
    '';
  
    propagatedBuildInputs = [
  