gnu: Add python-wsgiprox.

* gnu/packages/python-web.scm (python-wsgiprox): New variable.
This commit is contained in:
Maxim Cournoyer 2021-07-13 10:19:59 -04:00
parent 08935e5fff
commit 139ad8be2c
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -5303,6 +5303,46 @@ (define-public python-httpx
@end itemize")
(license license:bsd-3)))
(define-public python-wsgiprox
(package
(name "python-wsgiprox")
(version "1.5.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "wsgiprox" version))
(sha256
(base32
"11fsm199pvwbmqx2lccznvws65aam1rqqv0w79gal8hispwgd5rs"))))
(build-system python-build-system)
(arguments
;; The test suite hangs (see:
;; https://github.com/webrecorder/wsgiprox/issues/6).
`(#:tests? #f
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-pytest-argument
(lambda _
;; See: https://github.com/webrecorder/wsgiprox/issues/7.
(substitute* "setup.py"
(("--doctest-module")
"--doctest-modules")))))))
(propagated-inputs
`(("python-certauth" ,python-certauth)
("python-gevent" ,python-gevent)
("python-websocket-client" ,python-websocket-client)))
(native-inputs
`(("python-mock" ,python-mock)
("python-pytest-cov" ,python-pytest-cov)
("python-waitress" ,python-waitress)))
(home-page "https://github.com/webrecorder/wsgiprox")
(synopsis "HTTP/S proxy with WebSockets over WSGI")
(description "@code{wsgiprox} is a Python WSGI (Web Server Gateway
Interface) middle-ware for adding HTTP and HTTPS proxy support to a WSGI
application. The library accepts HTTP and HTTPS proxy connections, and routes
them to a designated prefix.")
(license license:asl2.0)))
(define-public python-websockets
(package
(name "python-websockets")