From bb76791b650eeed0c6d20fcfec38ee97cc4e30b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 11 Mar 2023 09:23:10 -0800 Subject: [PATCH] python310Packages.fastapi: don't run databases tests Databases is incompatible with SQLAlchemy 2.0. --- pkgs/development/python-modules/fastapi/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = [