From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:53076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvTWo-0007eK-ML for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvTWn-0005F2-LG for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gvTWn-0005Ei-Fm for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gvTWn-00012h-EO for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:09 -0500 Subject: [bug#34515] [PATCH 12/13] gnu: Add magic-wormhole-transit-relay. Resent-Message-ID: From: Leo Famulari Date: Sun, 17 Feb 2019 15:57:48 -0500 Message-Id: <4e03d0f28d2967e794c1df200070391ae7006e54.1550437064.git.leo@famulari.name> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 34515@debbugs.gnu.org * gnu/packages/magic-wormhole.scm (magic-wormhole-transit-relay): New variable. --- gnu/packages/magic-wormhole.scm | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/magic-wormhole.scm b/gnu/packages/magic-wormhole.scm index fd38fba0e8..cc97fec3f9 100644 --- a/gnu/packages/magic-wormhole.scm +++ b/gnu/packages/magic-wormhole.scm @@ -21,6 +21,7 @@ #:use-module (guix download) #:use-module (guix licenses) #:use-module (guix build-system python) + #:use-module (gnu packages check) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz)) @@ -57,3 +58,44 @@ clients connect to. The server performs store-and-forward delivery for small key-exchange and control messages. Bulk data is sent over a direct TCP connection, or through a transit-relay.") (license expat))) + +(define-public magic-wormhole-transit-relay + (package + (name "magic-wormhole-transit-relay") + (version "0.1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "magic-wormhole-transit-relay" version)) + (sha256 + (base32 + "11w5gdc6am2ph5rns60x0694sx4zrlzxj540jljhn5cmnbx1ngxi")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-docs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (docs (string-append out "/share/doc/magic-wormhole-transit-relay"))) + (for-each (lambda (file) + (install-file file docs)) + (find-files "docs/")) + #t)))))) + (native-inputs + `(("python-mock" ,python-mock) + ("python-pyflakes" ,python-pyflakes) + ("python-tox" ,python-tox))) + (propagated-inputs + `(("python-hyperlink" ,python-hyperlink) + ("python-twisted" ,python-twisted))) + (home-page + "https://github.com/warner/magic-wormhole-transit-relay") + (synopsis "Magic-Wormhole relay server") + (description "This package provides the Magic-Wormhole Transit Relay +server, which helps clients establish bulk-data transit connections even when +both are behind NAT boxes. Each side makes a TCP connection to this server and +presents a handshake. Two connections with identical handshakes are glued +together, allowing them to pretend they have a direct connection.") + (license expat))) + -- 2.20.1