diff options
author | Rutger Helling <rhelling@mykolab.com> | 2017-11-06 10:32:05 +0100 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-11-07 21:56:42 +0100 |
commit | a67f0946717420f264646556812cbd0d197bb360 (patch) | |
tree | c2122cd59acc045956ec75831b556b981f3db18d | |
parent | 75d342ffa9a65177a711cac645df7ac569fe9609 (diff) | |
download | patches-a67f0946717420f264646556812cbd0d197bb360.tar patches-a67f0946717420f264646556812cbd0d197bb360.tar.gz |
gnu: Add websockify.
* gnu/packages/web.scm (websockify): New variable.
Signed-off-by: Marius Bakke <mbakke@fastmail.com>
-rw-r--r-- | gnu/packages/web.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 070d0dbd00..8d3c3430bb 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2017 Kei Kebreau <kkebreau@posteo.net> ;;; Copyright © 2017 Petter <petter@mykolab.ch> ;;; Copyright © 2017 Pierre Langlois <pierre.langlois@gmx.com> +;;; Copyright © 2017 Rutger Helling <rhelling@mykolab.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -86,6 +87,7 @@ #:use-module (gnu packages lua) #:use-module (gnu packages markup) #:use-module (gnu packages ncurses) + #:use-module (gnu packages openstack) #:use-module (gnu packages base) #:use-module (gnu packages perl) #:use-module (gnu packages python) @@ -871,6 +873,35 @@ server). It was primarily designed to be used by one person or a small group of people.") (license l:expat))) +(define-public websockify + (package + (name "websockify") + (version "0.8.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/novnc/websockify/archive/v" + version "/archive.tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1kjq6gibsvbb6zx5gi8hgh7110x62pbwcqkwapf3k7s27w5y907h")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; FIXME: 2 out of 6 tests fail with "ImportError: No module + ; named 'stubout'". The tests can be run by replacing the check phase with + ; the command "python setup.py nosetests --verbosity=3". + (native-inputs `(; Required for tests: + ("python-mox3", python-mox3) + ("python-nose", python-nose))) + (propagated-inputs `(("python-numpy", python-numpy))) + (home-page "https://github.com/novnc/websockify") + (synopsis "WebSockets support for any application/server") + (description "Websockify translates WebSockets traffic to normal socket +traffic. Websockify accepts the WebSockets handshake, parses it, and then +begins forwarding traffic between the client and the target in both +directions.") + (license l:lgpl3))) + (define-public wwwoffle (package (name "wwwoffle") |