[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/10: gnu: Add python-uvicorn.
From: |
guix-commits |
Subject: |
05/10: gnu: Add python-uvicorn. |
Date: |
Mon, 7 Sep 2020 03:08:10 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit f3c9c2fbc3a6cbb1a476742e37766dbea8da78af
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Sep 6 02:46:48 2020 -0300
gnu: Add python-uvicorn.
* gnu/packages/python-web.scm (python-uvicorn): New variable.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/python-web.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 49699a7..41b6835 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4044,6 +4044,55 @@ and fairly speedy.")
"@code{httptools} is a Python binding for the nodejs HTTP parser.")
(license license:expat)))
+(define-public python-uvicorn
+ (package
+ (name "python-uvicorn")
+ (version "0.11.8")
+ (source
+ (origin
+ ;; PyPI tarball has no tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/encode/uvicorn")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00iidg5ysp7k00bw3kmkvr8mghnh4jdi0p2ryiarhryf8wz2r3fy"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(("python-black" ,python-black)
+ ("python-codecov" ,python-codecov)
+ ("python-flake8" ,python-flake8)
+ ("python-isort" ,python-isort)
+ ("python-mypy" ,python-mypy)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-mock" ,python-pytest-mock)
+ ("python-requests" ,python-requests)))
+ (propagated-inputs
+ `(("python-click" ,python-click)
+ ("python-h11" ,python-h11)
+ ("python-httptools" ,python-httptools)
+ ("python-pyyaml" ,python-pyyaml)
+ ("python-uvloop" ,python-uvloop)
+ ("python-watchgod" ,python-watchgod)
+ ("python-websockets" ,python-websockets)
+ ("python-wsproto" ,python-wsproto)))
+ (home-page "https://github.com/encode/uvicorn")
+ (synopsis "Fast ASGI server implementation")
+ (description
+ "@code{uvicorn} is a fast ASGI server implementation, using @code{uvloop}
+and @code{httptools}. It currently supports HTTP/1.1 and WebSockets. Support
+for HTTP/2 is planned.")
+ (license license:bsd-3)))
+
(define-public python-translation-finder
(package
(name "python-translation-finder")
- branch master updated (2e5fef8 -> 32bf033), guix-commits, 2020/09/07
- 01/10: gnu: Add python-httptools., guix-commits, 2020/09/07
- 02/10: gnu: Add python-uvloop., guix-commits, 2020/09/07
- 03/10: gnu: Add python-pytest-toolbox., guix-commits, 2020/09/07
- 04/10: gnu: Add python-watchgod., guix-commits, 2020/09/07
- 05/10: gnu: Add python-uvicorn.,
guix-commits <=
- 06/10: gnu: Add python-flake8-pie., guix-commits, 2020/09/07
- 07/10: gnu: Add python-autoflake., guix-commits, 2020/09/07
- 09/10: gnu: Add python-httpcore., guix-commits, 2020/09/07
- 08/10: gnu: Add python-trio-typing., guix-commits, 2020/09/07
- 10/10: gnu: Add python-httpx., guix-commits, 2020/09/07