From eac151a0c5c82f50c94b3581af0679e33d127805 Mon Sep 17 00:00:00 2001 From: Rutger Helling Date: Mon, 6 Nov 2017 10:32:05 +0100 Subject: [PATCH] gnu: networking: Add websockify. * gnu/packages/networking.scm (websockify): New variable. --- gnu/packages/networking.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 57b32c252..3f7d0a74c 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -68,6 +68,7 @@ #:use-module (gnu packages lua) #:use-module (gnu packages kerberos) #:use-module (gnu packages ncurses) + #:use-module (gnu packages openstack) #:use-module (gnu packages pcre) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) @@ -1535,3 +1536,32 @@ at the IP layer and link layer, as well as a host of supplementary functionality. Using libnet, quick and simple packet assembly applications can be whipped up with little effort.") (license license:bsd-2))) + +(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 license:lgpl3))) -- 2.15.0