22 buildPythonPackage rec {
27 disabled = pythonOlder "3.7";
29 src = fetchFromGitHub {
32 rev = "refs/tags/${version}";
33 hash = "sha256-j3Set+xWNcRqbn90DJOJQhMrJYI3msvWHlFvN1habP0=";
41 substituteInPlace pyproject.toml \
42 --replace "starlette==" "starlette>="
45 propagatedBuildInputs = [
63 ] ++ passlib.optional-dependencies.bcrypt;
66 # ignoring deprecation warnings to avoid test failure from
67 # tests/test_tutorial/test_testing/test_tutorial001.py
68 "-W ignore::DeprecationWarning"
72 # Disabled tests require orjson which requires rust nightly
73 "tests/test_default_response_class.py"
74 # Don't test docs and examples
79 "test_get_custom_response"
80 # Failed: DID NOT RAISE <class 'starlette.websockets.WebSocketDisconnect'>
81 "test_websocket_invalid_data"
82 "test_websocket_no_credentials"
83 # TypeError: __init__() missing 1...starlette-releated
89 pythonImportsCheck = [
94 description = "Web framework for building APIs";
95 homepage = "https://github.com/tiangolo/fastapi";
96 license = licenses.mit;
97 maintainers = with maintainers; [ wd15 ];