[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62252] [PATCH 18/19] gnu: Add python-fastapi.
From: |
Liliana Marie Prikler |
Subject: |
[bug#62252] [PATCH 18/19] gnu: Add python-fastapi. |
Date: |
Sat, 18 Mar 2023 09:59:52 +0100 |
* gnu/packages/python-web.scm (python-fastapi): New variable.
---
gnu/packages/python-web.scm | 62 +++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2df8fbc523..f2f7618f13 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -8094,6 +8094,68 @@ (define-public python-starlette
Interface) framework/toolkit for building async web services in Python.")
(license license:bsd-3)))
+(define-public python-fastapi
+ (package
+ (name "python-fastapi")
+ (version "0.92.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "fastapi" version))
+ (sha256
+ (base32
+ "1pm4p5i9h732f0qag85yd9ngjz8x9bhs3fyk2j861cn8s9dhyfh2"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'drop-orjson
+ (lambda _
+ (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
+ python-httpx
+ python-itsdangerous
+ python-jinja2
+ python-multipart
+ python-starlette
+ python-pydantic
+ python-pyyaml
+ python-uvicorn
+ python-ujson))
+ (native-inputs (list python-databases
+ python-flask
+ python-hatchling
+ python-isort
+ python-jose
+ python-mypy
+ python-passlib
+ python-peewee
+ python-pytest
+ python-sqlalchemy
+ python-types-orjson
+ python-types-ujson))
+ (home-page "https://github.com/tiangolo/fastapi")
+ (synopsis "Web framework based on type hints")
+ (description "FastAPI provides a web API framework based on pydantic and
+starlette.")
+ (license license:expat)))
+
(define-public python-pyactiveresource
(package
(name "python-pyactiveresource")
--
2.39.2
- [bug#62252] [PATCH 09/19] gnu: python-pluggy: Move to (gnu packages python-build)., (continued)
- [bug#62252] [PATCH 09/19] gnu: python-pluggy: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 15/19] gnu: python-aiosqlite: Update to 0.18.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 07/19] gnu: Add python-pluggy-next., Felix Gruber, 2023/03/18
- [bug#62252] [PATCH 03/19] gnu: Separate potassco packages into their own module., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 10/19] gnu: Add python-hatchling., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 16/19] gnu: python-databases: Update to 0.7.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 17/19] gnu: python-databases: Revise description., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 11/19] gnu: python-starlette: Update to 0.25.0., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 12/19] gnu: python-sqlalchemy: Update to 1.4.42., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 14/19] gnu: python-aiomysql: Update to 0.1.1., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH 18/19] gnu: Add python-fastapi.,
Liliana Marie Prikler <=
- [bug#62252] [PATCH 19/19] gnu: Add python-clinguin., Liliana Marie Prikler, 2023/03/18
- [bug#62252] [PATCH v2 01/19] gnu: Add python-imageio-ffmpeg., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 08/19] gnu: python-pathspec: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 10/19] gnu: Add python-hatchling., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 02/19] gnu: python-imageio: Update to 2.26.0., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 05/19] gnu: python-pathspec: Update to 0.11.0., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 09/19] gnu: python-pluggy: Move to (gnu packages python-build)., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 15/19] gnu: python-aiosqlite: Update to 0.18.0., Liliana Marie Prikler, 2023/03/21
- [bug#62252] [PATCH v2 07/19] gnu: Add python-pluggy-next., Felix Gruber, 2023/03/21
- [bug#62252] [PATCH v2 04/19] gnu: Add python-clingraph., Liliana Marie Prikler, 2023/03/21