python311Packages.fastapi: add optional-dependencies for pydantic 2

This commit is contained in:
natsukium 2023-11-24 13:42:36 +09:00 committed by Martin Weinelt
parent 4bb12a8133
commit ea1fafe298
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -32,6 +32,8 @@
, orjson
, email-validator
, uvicorn
, pydantic-settings
, pydantic-extra-types
}:
buildPythonPackage rec {
@ -75,8 +77,9 @@ buildPythonPackage rec {
orjson
email-validator
uvicorn
# pydantic-settings
# pydantic-extra-types
] ++ lib.optionals (lib.versionAtLeast pydantic.version "2") [
pydantic-settings
pydantic-extra-types
] ++ uvicorn.optional-dependencies.standard;
nativeCheckInputs = [