diff options
| author | Robert Schütz <nix@dotlambda.de> | 2023-03-11 09:23:10 -0800 |
|---|---|---|
| committer | Robert Schütz <nix@dotlambda.de> | 2023-03-11 09:36:42 -0800 |
| commit | bb76791b650eeed0c6d20fcfec38ee97cc4e30b4 (patch) | |
| tree | 42737002931d159003e634e2de62fe2db256a6f8 /pkgs/development/python-modules/fastapi | |
| parent | 52f84b7e22f36ff5e02ba715c95b48e51792a94e (diff) | |
python310Packages.fastapi: don't run databases tests
Databases is incompatible with SQLAlchemy 2.0.
Diffstat (limited to 'pkgs/development/python-modules/fastapi')
| -rw-r--r-- | pkgs/development/python-modules/fastapi/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/fastapi/default.nix b/pkgs/development/python-modules/fastapi/default.nix index 05bb745ca1d9..fec7d7b6a6dd 100644 --- a/pkgs/development/python-modules/fastapi/default.nix +++ b/pkgs/development/python-modules/fastapi/default.nix @@ -39,6 +39,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pyproject.toml \ + --replace '"databases[sqlite] >=0.3.2,<0.7.0",' "" \ --replace "starlette==" "starlette>=" ''; @@ -49,7 +50,7 @@ buildPythonPackage rec { nativeCheckInputs = [ aiosqlite - databases + # databases FIXME incompatible with SQLAlchemy 2.0 flask httpx orjson @@ -73,6 +74,9 @@ buildPythonPackage rec { "tests/test_default_response_class.py" # Don't test docs and examples "docs_src" + # databases is incompatible with SQLAlchemy 2.0 + "tests/test_tutorial/test_async_sql_databases" + "tests/test_tutorial/test_sql_databases" ]; disabledTests = [ |
