python310Packages.fastapi: don't run databases tests

Databases is incompatible with SQLAlchemy 2.0.
This commit is contained in:
Robert Schütz
2023-03-11 09:23:10 -08:00
parent 52f84b7e22
commit bb76791b65

View File

@@ -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 = [