[Buildroot] [PATCH next 4/7] package/python-magic-wormhole: new package
Julien Olivain
ju.o at free.fr
Sat Nov 19 22:42:22 UTC 2022
Securely transfer data between computers.
This package provides a library and a command-line tool named
"wormhole", which makes it possible to get 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.
https://github.com/magic-wormhole/magic-wormhole
Signed-off-by: Julien Olivain <ju.o at free.fr>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/python-magic-wormhole/Config.in | 27 +++++++++++++++++++
.../python-magic-wormhole.hash | 5 ++++
.../python-magic-wormhole.mk | 14 ++++++++++
5 files changed, 48 insertions(+)
create mode 100644 package/python-magic-wormhole/Config.in
create mode 100644 package/python-magic-wormhole/python-magic-wormhole.hash
create mode 100644 package/python-magic-wormhole/python-magic-wormhole.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index ebbd0459b7..3d0738b367 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1695,6 +1695,7 @@ F: package/ptm2human/
F: package/python-distro/
F: package/python-gnupg/
F: package/python-hkdf/
+F: package/python-magic-wormhole/
F: package/python-pyalsa/
F: package/python-spake2/
F: package/riscv-isa-sim/
diff --git a/package/Config.in b/package/Config.in
index a1df1542c7..80cb9dc3f2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1109,6 +1109,7 @@ menu "External python modules"
source "package/python-lxml/Config.in"
source "package/python-m2crypto/Config.in"
source "package/python-m2r/Config.in"
+ source "package/python-magic-wormhole/Config.in"
source "package/python-mako/Config.in"
source "package/python-markdown/Config.in"
source "package/python-markdown2/Config.in"
diff --git a/package/python-magic-wormhole/Config.in b/package/python-magic-wormhole/Config.in
new file mode 100644
index 0000000000..e8429d203b
--- /dev/null
+++ b/package/python-magic-wormhole/Config.in
@@ -0,0 +1,27 @@
+config BR2_PACKAGE_PYTHON_MAGIC_WORMHOLE
+ bool "python-magic-wormhole"
+ depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-autobahn -> python-cryptography
+ select BR2_PACKAGE_PYTHON_ATTRS # runtime
+ select BR2_PACKAGE_PYTHON_AUTOBAHN # runtime
+ select BR2_PACKAGE_PYTHON_AUTOMAT # runtime
+ select BR2_PACKAGE_PYTHON_CLICK # runtime
+ select BR2_PACKAGE_PYTHON_HKDF # runtime
+ select BR2_PACKAGE_PYTHON_HUMANIZE # runtime
+ select BR2_PACKAGE_PYTHON_PYNACL # runtime
+ select BR2_PACKAGE_PYTHON_SIX # runtime
+ select BR2_PACKAGE_PYTHON_SPAKE2 # runtime
+ select BR2_PACKAGE_PYTHON_TQDM # runtime
+ select BR2_PACKAGE_PYTHON_TWISTED # runtime
+ select BR2_PACKAGE_PYTHON_TXTORCON # runtime
+ help
+ Securely transfer data between computers.
+
+ This package provides a library and a command-line tool
+ named "wormhole", which makes it possible to get
+ 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.
+
+ https://github.com/magic-wormhole/magic-wormhole
diff --git a/package/python-magic-wormhole/python-magic-wormhole.hash b/package/python-magic-wormhole/python-magic-wormhole.hash
new file mode 100644
index 0000000000..5e880d5427
--- /dev/null
+++ b/package/python-magic-wormhole/python-magic-wormhole.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/magic-wormhole/json
+md5 ca190d92f56fe32ec8dfd4fc5aab8337 magic-wormhole-0.12.0.tar.gz
+sha256 1b0fd8a334da978f3dd96b620fa9b9348cabedf26a87f74baac7a37052928160 magic-wormhole-0.12.0.tar.gz
+# Locally computed sha256 checksums
+sha256 4a9cc2415c52cef591b6822eee68fed36d7e6d80284b09638cff61d762d99060 LICENSE
diff --git a/package/python-magic-wormhole/python-magic-wormhole.mk b/package/python-magic-wormhole/python-magic-wormhole.mk
new file mode 100644
index 0000000000..91f0f826d5
--- /dev/null
+++ b/package/python-magic-wormhole/python-magic-wormhole.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-magic-wormhole
+#
+################################################################################
+
+PYTHON_MAGIC_WORMHOLE_VERSION = 0.12.0
+PYTHON_MAGIC_WORMHOLE_SOURCE = magic-wormhole-$(PYTHON_MAGIC_WORMHOLE_VERSION).tar.gz
+PYTHON_MAGIC_WORMHOLE_SITE = https://files.pythonhosted.org/packages/d4/62/5e4a86f7c4b111e016577f1b304063ebe604f430db15465ac58b13993608
+PYTHON_MAGIC_WORMHOLE_SETUP_TYPE = setuptools
+PYTHON_MAGIC_WORMHOLE_LICENSE = MIT
+PYTHON_MAGIC_WORMHOLE_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
--
2.38.1
More information about the buildroot
mailing list