From patchwork Sun Feb 17 20:57:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Famulari X-Patchwork-Id: 1154 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 D713516C50; Sun, 17 Feb 2019 20:59:45 +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 7923816C4B for ; Sun, 17 Feb 2019 20:59:45 +0000 (GMT) Received: from localhost ([127.0.0.1]:46537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvTXN-00083q-2b for patchwork@mira.cbaines.net; Sun, 17 Feb 2019 15:59:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvTWn-0007d2-Ob for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvTWm-0005Dv-JA for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gvTWm-0005Dg-Em for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gvTWm-00012S-DW for guix-patches@gnu.org; Sun, 17 Feb 2019 15:59:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34515] [PATCH 13/13] gnu: Add Magic-Wormhole. Resent-From: Leo Famulari Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Feb 2019 20:59:08 +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.15504371033857 (code B ref 34515); Sun, 17 Feb 2019 20:59:08 +0000 Received: (at 34515) by debbugs.gnu.org; 17 Feb 2019 20:58:23 +0000 Received: from localhost ([127.0.0.1]:51753 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvTW3-000103-7T for submit@debbugs.gnu.org; Sun, 17 Feb 2019 15:58:23 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:59647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvTVn-0000xr-Ul for 34515@debbugs.gnu.org; Sun, 17 Feb 2019 15:58:08 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D8C0E2DA9; 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:57 -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=Aea9wCELDd ngtA+y3cRvRcKXq/SQYuZ7/jVC+msXLhc=; b=VFG3UzpCA5DzEDvya5+SrGZwsY yMiPseLkfy8uY/vGAG2HphHYHPw3qyWis0hhRUg90QGPJ571MZBf5mSzun8wW7/n mpOCpu5AXPkoAczaEB3Bx7QAXITqiPQrg0CxdVYviGMHPb4BBZO4bJKaxxi0STaW tW9gF4aZ8aA6PalFU= 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=Aea9wCELDdngtA+y3cRvRcKXq/SQYuZ7/jVC+msXLhc=; b=bTQTDR1M XhIsew+eu5Haf0ugUwVHDGmoSt5I87wkPLh1KDHsl5jkNZ26HLkxXTyuOc/YGCfP EOCKsTNpMT+XIOQR3xmFGEs+DRQK7OPdeMWJ1gIsGky13XtdUQEqeUlZmfRxaPXd hCcFJWJn9+wFzSw66gDbisoYD4Oqtv2NOFIjHwg9KHZ8IpdLXuTP/p3b3MIoPdtR dV91scw0SmHRgvK2RxC3NAaU0cEK+NOEe5Cc4R+bEnb4rFbssSQU0zsIvJenHWPI jYTnBC6EpLAywh/OiR6vjvor2lWB4WOnABlFX8ls/bezDuGMa9Hk06FOaINyBIp4 v/gZSLqC0356tQ== 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 2F9151030F for <34515@debbugs.gnu.org>; Sun, 17 Feb 2019 15:57:56 -0500 (EST) From: Leo Famulari Date: Sun, 17 Feb 2019 15:57:49 -0500 Message-Id: <10c8f51b53835850b458bef15e2a11ab0dc0d70a.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): New variable. --- gnu/packages/magic-wormhole.scm | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/magic-wormhole.scm b/gnu/packages/magic-wormhole.scm index cc97fec3f9..b1aec5ad9c 100644 --- a/gnu/packages/magic-wormhole.scm +++ b/gnu/packages/magic-wormhole.scm @@ -99,3 +99,56 @@ presents a handshake. Two connections with identical handshakes are glued together, allowing them to pretend they have a direct connection.") (license expat))) +(define-public magic-wormhole + (package + (name "magic-wormhole") + (version "0.11.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "magic-wormhole" version)) + (sha256 + (base32 + "01fr4bi6kc6fz9n3c4qq892inrc3nf6p2djy65yvm7xkvdxncydf")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + ;; XXX I can't figure out how to build the docs properly. + (add-after 'install 'install-docs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man (string-append out "/share/man/man1"))) + (install-file "docs/wormhole.1" man)) + #t))))) + (native-inputs + `(("python-mock" ,python-mock) + ;; XXX These are required for the test suite but end up being referenced + ;; by the built package. + ("magic-wormhole-mailbox-server" ,magic-wormhole-mailbox-server) + ("magic-wormhole-transit-relay" ,magic-wormhole-transit-relay))) + (propagated-inputs + `(("python-autobahn" ,python-autobahn) + ("python-click" ,python-click) + ("python-hkdf" ,python-hkdf) + ("python-humanize" ,python-humanize) + ("python-hyperlink" ,python-hyperlink) + ("python-pynacl" ,python-pynacl) + ("python-spake2" ,python-spake2) + ("python-tqdm" ,python-tqdm) + ("python-twisted" ,python-twisted) + ("python-txtorcon" ,python-txtorcon))) + (home-page "https://github.com/warner/magic-wormhole") + (synopsis "Securely transfer data between computers") + (description "Magic-Wormhole is a library and a command-line tool named +wormhole, which makes it possible to securely transfer arbitrary-sized files and +directories (or short pieces of text) from one computer to another. The two +endpoints are identified by using identical \"wormhole codes\": in general, the +sending machine generates and displays the code, which must then be typed into +the receiving machine. + +The codes are short and human-pronounceable, using a phonetically-distinct +wordlist. The receiving side offers tab-completion on the codewords, so usually +only a few characters must be typed. Wormhole codes are single-use and do not +need to be memorized.") + (license expat)))