24 # optional-dependencies
36 buildPythonPackage rec {
41 disabled = pythonOlder "3.7";
43 src = fetchFromGitHub {
46 rev = "refs/tags/${version}";
47 hash = "sha256-2J8c3S4Ca+c5bI0tyjMJArJKux9qPmu+ohqve5PhSGI=";
54 propagatedBuildInputs = [
60 passthru.optional-dependencies.all = [
71 # pydantic-extra-types
72 ] ++ uvicorn.optional-dependencies.standard;
83 ] ++ passthru.optional-dependencies.all
84 ++ python-jose.optional-dependencies.cryptography;
87 # ignoring deprecation warnings to avoid test failure from
88 # tests/test_tutorial/test_testing/test_tutorial001.py
89 "-W ignore::DeprecationWarning"
93 # Disabled tests require orjson which requires rust nightly
94 "tests/test_default_response_class.py"
95 # Don't test docs and examples
97 # databases is incompatible with SQLAlchemy 2.0
98 "tests/test_tutorial/test_async_sql_databases"
99 "tests/test_tutorial/test_sql_databases"
103 "test_get_custom_response"
104 # Failed: DID NOT RAISE <class 'starlette.websockets.WebSocketDisconnect'>
105 "test_websocket_invalid_data"
106 "test_websocket_no_credentials"
107 # TypeError: __init__() missing 1...starlette-releated
111 # Unexpected number of warnings caught
112 "test_warn_duplicate_operation_id"
113 # assert state["except"] is True
114 "test_dependency_gets_exception"
117 pythonImportsCheck = [
122 description = "Web framework for building APIs";
123 homepage = "https://github.com/tiangolo/fastapi";
124 license = licenses.mit;
125 maintainers = with maintainers; [ wd15 ];