[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: Add python-uvloop.
From: |
guix-commits |
Subject: |
02/10: gnu: Add python-uvloop. |
Date: |
Mon, 7 Sep 2020 03:08:09 -0400 (EDT) |
mothacehe pushed a commit to branch master
in repository guix.
commit 5438adea303a52fdc08ee669ea3324c8a8765483
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Sep 6 02:46:45 2020 -0300
gnu: Add python-uvloop.
* gnu/packages/python-web.scm (python-uvloop): New variable.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/packages/python-web.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 5dc7430..49699a7 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -68,6 +68,7 @@
#:use-module (gnu packages databases)
#:use-module (gnu packages django)
#:use-module (gnu packages groff)
+ #:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -3887,6 +3888,43 @@ XPath and therefore does not have all the correctness
corner cases that are
hard or impossible to fix in cssselect.")
(license license:bsd-3)))
+(define-public python-uvloop
+ (package
+ (name "python-uvloop")
+ (version "0.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "uvloop" version))
+ (sha256
+ (base32 "07j678z9gf41j98w72ysrnb5sa41pl5yxd7ib17lcwfxqz0cjfhj"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:tests? #f ;FIXME: tests hang and with some errors in the way
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'preparations
+ (lambda _
+ ;; Use packaged libuv.
+ (substitute* "setup.py" (("self.use_system_libuv = False")
+ "self.use_system_libuv = True"))
+ #t)))))
+ (native-inputs
+ `(("python-aiohttp" ,python-aiohttp)
+ ("python-cython" ,python-cython)
+ ("python-flake8" ,python-flake8)
+ ("python-psutil" ,python-psutil)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-twine" ,python-twine)))
+ (inputs
+ `(("libuv" ,libuv)))
+ (home-page "https://github.com/MagicStack/uvloop")
+ (synopsis "Fast implementation of asyncio event loop on top of libuv")
+ (description
+ "@code{uvloop} is a fast, drop-in replacement of the built-in asyncio
+event loop. It is implemented in Cython and uses libuv under the hood.")
+ (license license:expat)))
+
(define-public gunicorn
(package
(name "gunicorn")
- 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 <=
- 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, 2020/09/07
- 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