gnu: python-fastapi: Do not delete tests, and add orjson.
* gnu/packages/python-web.scm (python-fastapi)[arguments]: Remove all custom phases; ignore two test files. [propagated-inputs]: Add python-orjson.
This commit is contained in:
parent
0f7d8a8305
commit
a9bd722d67
1 changed files with 5 additions and 21 deletions
|
@ -8287,32 +8287,16 @@ Interface) framework/toolkit for building async web services in Python.")
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:phases
|
#:test-flags
|
||||||
#~(modify-phases %standard-phases
|
;; The test_create_user tests fail with a 400 error: "Email already registered".
|
||||||
(add-after 'unpack 'drop-orjson
|
'(list "--ignore=docs_src/sql_databases/sql_app_py310/tests/test_sql_app.py"
|
||||||
(lambda _
|
"--ignore=docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py")))
|
||||||
(substitute* "pyproject.toml"
|
|
||||||
(("\"orjson.*\",") ""))))
|
|
||||||
(add-after 'unpack 'delete-failing-tests
|
|
||||||
(lambda _
|
|
||||||
(for-each
|
|
||||||
delete-file
|
|
||||||
(append
|
|
||||||
'("docs_src/app_testing/app_b_py310/test_main.py"
|
|
||||||
"tests/test_tutorial/test_templates/test_tutorial001.py")
|
|
||||||
(find-files "docs_src/sql_databases/"
|
|
||||||
"test_sql_app\\.py$")
|
|
||||||
(find-files "tests"
|
|
||||||
"test_(default|orjson)_response_class\\.py$")
|
|
||||||
(find-files "tests/test_tutorial"
|
|
||||||
"test_tutorial00(1b|9c)\\.py$")
|
|
||||||
(find-files "tests/test_tutorial"
|
|
||||||
"test_testing_databases.*\\.py$"))))))))
|
|
||||||
(propagated-inputs (list python-email-validator
|
(propagated-inputs (list python-email-validator
|
||||||
python-httpx
|
python-httpx
|
||||||
python-itsdangerous
|
python-itsdangerous
|
||||||
python-jinja2
|
python-jinja2
|
||||||
python-multipart
|
python-multipart
|
||||||
|
python-orjson
|
||||||
python-starlette
|
python-starlette
|
||||||
python-pydantic
|
python-pydantic
|
||||||
python-pyyaml
|
python-pyyaml
|
||||||
|
|
Reference in a new issue