mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
python310Packages.fastapi: don't run databases tests
Databases is incompatible with SQLAlchemy 2.0.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user