anchor.diff:      trio
     ];
   
  -  # disabled tests require orjson which requires rust nightly
  -
  -  # ignoring deprecation warnings to avoid test failure from
  -  # tests/test_tutorial/test_testing/test_tutorial001.py
  +  postPatch = ''
  +    substituteInPlace pyproject.toml \
  +      --replace "starlette ==" "starlette >="
  +  '';
   
     pytestFlagsArray = [
  -    "--ignore=tests/test_default_response_class.py"
  +    # ignoring deprecation warnings to avoid test failure from
  +    # tests/test_tutorial/test_testing/test_tutorial001.py
       "-W ignore::DeprecationWarning"
  +  ];
  +
  +  disabledTestPaths = [
  +    # Disabled tests require orjson which requires rust nightly
  +    "tests/test_default_response_class.py"
     ];
   
     disabledTests = [
  
positive.code: , python-jose
  , sqlalchemy
  , trio
  }:
  
  buildPythonPackage rec {
    pname = "fastapi";
    version = "0.70.0";
    format = "flit";
  
    src = fetchFromGitHub {
      owner = "tiangolo";
      repo = "fastapi";
      rev = version;
      sha256 = "sha256-mLI+w9PeewnwUMuUnXj6J2r/3shinjlwXMnhNcQlhrM=";
    };
  
    postPatch = ''
      substituteInPlace pyproject.toml \
        --replace "starlette ==" "starlette >="
    '';
  
    propagatedBuildInputs = [
      starlette
  
negative.code:     "test_websocket_no_credentials"
    ];
  
    pythonImportsCheck = [
      "fastapi"
    ];
  
    meta = with lib; {
      description = "Web framework for building APIs";
      homepage = "https://github.com/tiangolo/fastapi";
      license = licenses.mit;
      maintainers = with maintainers; [ wd15 ];
    };
  