gnu: Add python-uvloop.

* gnu/packages/python-web.scm (python-uvloop): New variable.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Vinicius Monego 2020-09-06 02:46:45 -03:00 committed by Mathieu Othacehe
parent c66a16bb97
commit 5438adea30
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -68,6 +68,7 @@ (define-module (gnu packages python-web)
#: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 @@ (define-public python-cssselect2
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")