2019-02-17 20:44:56 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2019 Leo Famulari <leo@famulari.name>
|
2024-03-20 18:55:50 +00:00
|
|
|
;;; Copyright © 2024 normally_js <normally_js@posteo.net>
|
2024-03-23 20:47:22 +00:00
|
|
|
;;; Copyright © 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
|
2024-04-03 22:21:26 +00:00
|
|
|
;;; Copyright © 2024 TakeV <takev@disroot.org>
|
2019-02-17 20:44:56 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages magic-wormhole)
|
2024-03-23 17:46:39 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
2024-03-23 17:37:02 +00:00
|
|
|
#:use-module (guix build-system pyproject)
|
2024-03-23 18:57:28 +00:00
|
|
|
#:use-module ((guix build-system python) #:select (pypi-uri))
|
2024-03-23 17:46:39 +00:00
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
#:use-module (guix packages)
|
2019-02-19 04:57:09 +00:00
|
|
|
#:use-module (gnu packages check)
|
2024-04-03 22:21:26 +00:00
|
|
|
#:use-module (gnu packages python-compression)
|
2019-02-17 20:44:56 +00:00
|
|
|
#:use-module (gnu packages python-crypto)
|
|
|
|
#:use-module (gnu packages python-web)
|
|
|
|
#:use-module (gnu packages python-xyz))
|
|
|
|
|
|
|
|
(define-public magic-wormhole-mailbox-server
|
|
|
|
(package
|
|
|
|
(name "magic-wormhole-mailbox-server")
|
2020-04-29 20:14:55 +00:00
|
|
|
(version "0.4.1")
|
2019-02-17 20:44:56 +00:00
|
|
|
(source
|
2024-03-23 20:37:47 +00:00
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "magic-wormhole-mailbox-server" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1yw8i8jv5iv1kkz1aqimskw7fpichjn6ww0fq0czbalwj290bw8s"))))
|
2024-03-23 17:50:34 +00:00
|
|
|
(build-system pyproject-build-system)
|
2019-02-17 20:44:56 +00:00
|
|
|
(native-inputs
|
2024-03-23 17:50:34 +00:00
|
|
|
(list python-mock python-pytest))
|
2019-02-17 20:44:56 +00:00
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-attrs
|
|
|
|
python-autobahn
|
|
|
|
python-idna
|
|
|
|
python-service-identity
|
|
|
|
python-six
|
|
|
|
python-treq
|
|
|
|
python-twisted))
|
2024-03-23 20:55:48 +00:00
|
|
|
(home-page "https://github.com/magic-wormhole/magic-wormhole-mailbox-server")
|
2019-02-17 20:44:56 +00:00
|
|
|
(synopsis "Magic-Wormhole central mailbox server")
|
2024-03-23 20:37:47 +00:00
|
|
|
(description
|
|
|
|
"This package provides the main server that Magic-Wormhole clients
|
|
|
|
connect to. The server performs store-and-forward delivery for small
|
2019-02-17 20:44:56 +00:00
|
|
|
key-exchange and control messages. Bulk data is sent over a direct TCP
|
|
|
|
connection, or through a transit-relay.")
|
2024-03-23 20:37:47 +00:00
|
|
|
(license license:expat)))
|
2019-02-19 04:57:09 +00:00
|
|
|
|
|
|
|
(define-public magic-wormhole-transit-relay
|
|
|
|
(package
|
|
|
|
(name "magic-wormhole-transit-relay")
|
2020-04-29 20:15:19 +00:00
|
|
|
(version "0.2.1")
|
2019-02-19 04:57:09 +00:00
|
|
|
(source
|
2024-03-23 20:41:37 +00:00
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "magic-wormhole-transit-relay" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0ppsx2s1ysikns1h053x67z2zmficbn3y3kf52bzzslhd2s02j6b"))))
|
2024-03-23 17:56:21 +00:00
|
|
|
(build-system pyproject-build-system)
|
2019-02-19 04:57:09 +00:00
|
|
|
(arguments
|
2024-03-23 17:56:21 +00:00
|
|
|
(list
|
|
|
|
#:phases
|
2024-03-23 20:41:37 +00:00
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'install 'install-docs
|
|
|
|
(lambda _
|
|
|
|
(let* ((out #$output)
|
|
|
|
(docs (string-append out "/share/doc/magic-wormhole-transit-relay")))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(install-file file docs))
|
|
|
|
(find-files "docs/"))))))))
|
2019-02-19 04:57:09 +00:00
|
|
|
(native-inputs
|
2024-03-23 20:47:22 +00:00
|
|
|
(list python-mock python-pytest))
|
2019-02-19 04:57:09 +00:00
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-twisted))
|
2024-03-23 20:55:48 +00:00
|
|
|
(home-page "https://github.com/magic-wormhole/magic-wormhole-transit-relay")
|
2019-02-19 04:57:09 +00:00
|
|
|
(synopsis "Magic-Wormhole relay server")
|
2024-03-23 20:41:37 +00:00
|
|
|
(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
|
2019-02-19 04:57:09 +00:00
|
|
|
presents a handshake. Two connections with identical handshakes are glued
|
|
|
|
together, allowing them to pretend they have a direct connection.")
|
2024-03-23 20:41:37 +00:00
|
|
|
(license license:expat)))
|
2019-02-19 04:58:21 +00:00
|
|
|
|
|
|
|
(define-public magic-wormhole
|
|
|
|
(package
|
|
|
|
(name "magic-wormhole")
|
2024-04-03 22:21:26 +00:00
|
|
|
(version "0.14.0")
|
2019-02-19 04:58:21 +00:00
|
|
|
(source
|
2024-03-23 17:42:56 +00:00
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "magic-wormhole" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2024-04-03 22:21:26 +00:00
|
|
|
"105hsv7ck83bs29929zpb29aygr69q00mxpgq9xw7xxzi2gj6v80"))))
|
2024-03-23 17:37:02 +00:00
|
|
|
(build-system pyproject-build-system)
|
2019-02-19 04:58:21 +00:00
|
|
|
(arguments
|
2024-03-23 17:37:02 +00:00
|
|
|
(list
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
;; XXX I can't figure out how to build the docs properly.
|
|
|
|
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34515#101
|
|
|
|
(add-after 'install 'install-docs
|
|
|
|
(lambda _
|
|
|
|
(install-file "docs/wormhole.1"
|
|
|
|
(string-append #$output "/share/man/man1")))))))
|
2019-02-19 04:58:21 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-mock
|
2024-03-23 17:37:02 +00:00
|
|
|
python-pytest
|
2021-12-13 16:18:24 +00:00
|
|
|
magic-wormhole-mailbox-server
|
|
|
|
magic-wormhole-transit-relay))
|
2019-02-19 04:58:21 +00:00
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-autobahn
|
|
|
|
python-click
|
|
|
|
python-hkdf
|
|
|
|
python-humanize
|
2024-04-03 22:21:26 +00:00
|
|
|
python-iterable-io
|
2024-03-23 17:37:02 +00:00
|
|
|
python-noiseprotocol
|
2021-12-13 16:18:24 +00:00
|
|
|
python-pynacl
|
|
|
|
python-spake2
|
|
|
|
python-tqdm
|
|
|
|
python-twisted
|
2024-04-03 22:21:26 +00:00
|
|
|
python-txtorcon
|
|
|
|
python-zipstream-ng))
|
2024-03-23 20:55:48 +00:00
|
|
|
(home-page "https://github.com/magic-wormhole/magic-wormhole")
|
2019-02-19 04:58:21 +00:00
|
|
|
(synopsis "Securely transfer data between computers")
|
2024-03-23 17:42:56 +00:00
|
|
|
(description
|
|
|
|
"Magic-Wormhole is a library and a command-line tool named wormhole,
|
|
|
|
which makes it possible to securely transfer arbitrary-sized files and
|
2019-02-19 04:58:21 +00:00
|
|
|
directories (or short pieces of text) from one computer to another. The two
|
2024-03-23 17:42:56 +00:00
|
|
|
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.
|
2019-02-19 04:58:21 +00:00
|
|
|
|
|
|
|
The codes are short and human-pronounceable, using a phonetically-distinct
|
2024-03-23 17:42:56 +00:00
|
|
|
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.")
|
2024-03-23 17:46:39 +00:00
|
|
|
(license license:expat)))
|