mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +00:00
python311Packages.fastapi: add optional-dependencies for pydantic 2
This commit is contained in:
parent
4bb12a8133
commit
ea1fafe298
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user