From patchwork Sun Feb 17 20:57:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Famulari X-Patchwork-Id: 1152 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4EE6D16C50; Sun, 17 Feb 2019 20:59:37 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id CB6D716C4E for ; Sun, 17 Feb 2019 20:59:36 +0000 (GMT) Received: from localhost ([127.0.0.1]:46531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvTXE-0007tR-8k for patchwork@mira.cbaines.net; Sun, 17 Feb 2019 15:59:36 -0500 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 X-Loop: help-debbugs@gnu.org Subject: [bug#34515] [PATCH 12/13] gnu: Add magic-wormhole-transit-relay. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Feb 2019 20:59:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34515 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 34515@debbugs.gnu.org Received: via spool by 34515-submit@debbugs.gnu.org id=B34515.15504371043871 (code B ref 34515); Sun, 17 Feb 2019 20:59:09 +0000 Received: (at 34515) by debbugs.gnu.org; 17 Feb 2019 20:58:24 +0000 Received: from localhost ([127.0.0.1]:51757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvTW3-00010H-SQ for submit@debbugs.gnu.org; Sun, 17 Feb 2019 15:58:24 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:57725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvTVn-0000xq-Ux for 34515@debbugs.gnu.org; Sun, 17 Feb 2019 15:58:09 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B2DBE2DA8; Sun, 17 Feb 2019 15:57:56 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 17 Feb 2019 15:57:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name; h=from:to:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=mesmtp; bh=tl3hvgX1Tx qr4I2L84rNoFhCld+oFdHb2kJLpYl3MpU=; b=BA2PimY8VrhjaRzPQFLQuvfnjd dVxlrvKpkB3EPQozOYTzagdQ166lT9RVeYwd85Nb9QKumKJpEDm+JDVmxD2gm+BS LHooKxWw9TpjYiJRzb5SOVO8e8f9W5OwoP2WR+DuZ9L7Oxcx8PhDly6zckro2GpN A0XLh/SJW3khtfUys= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=tl3hvgX1Txqr4I2L84rNoFhCld+oFdHb2kJLpYl3MpU=; b=uQurXOEw MZ5k/Ax+Ptznd6MwA7eRSu2hNTVF6RBV3PQTZy8fs1QaVzZwq4PLMn3CxDNTz5V8 R1vLK0jcYz0mKdbqH23M2F0Ruw29bkpCkFWcYXDe53Z7v9JJBsc+/07aSAQrUYqA QeVH0n3TJwhj704KECSp3EBGfw46JStr2UxYNf6j96e5g/Tf28T62ev8eDZdCLqd 4HZA0L3mga+M31a3RPwO95bTr7HCuyI7LIX2P2DnEeunqPohHYIoAk4eeSgaX4r/ jYBkLgafM6KN3lgcIKG79ZosS0SMCvXohngZURh0+uuOcjcY509iaw8vUK/BC4Rb +peCc9L3Nn1Oiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrudduuddgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecu fedttdenucenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomh epnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecu ffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepjeeirdduvdegrddvtddvrddufe ejnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghmuhhlrghrihdrnhgrmhgv necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from jasmine.lan (c-76-124-202-137.hsd1.pa.comcast.net [76.124.202.137]) by mail.messagingengine.com (Postfix) with ESMTPA id 0986210310 for <34515@debbugs.gnu.org>; Sun, 17 Feb 2019 15:57:56 -0500 (EST) From: Leo Famulari Date: Sun, 17 Feb 2019 15:57:48 -0500 Message-Id: <4e03d0f28d2967e794c1df200070391ae7006e54.1550437064.git.leo@famulari.name> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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))) +