Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/python-asyncssh: new package
@ 2023-12-14 17:53 James Hilliard
  2023-12-25 10:29 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2023-12-14 17:53 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Thomas Petazzoni, Asaf Kahlon

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/Config.in                            |  1 +
 package/python-asyncssh/Config.in            |  9 +++++++++
 package/python-asyncssh/python-asyncssh.hash |  5 +++++
 package/python-asyncssh/python-asyncssh.mk   | 14 ++++++++++++++
 4 files changed, 29 insertions(+)
 create mode 100644 package/python-asyncssh/Config.in
 create mode 100644 package/python-asyncssh/python-asyncssh.hash
 create mode 100644 package/python-asyncssh/python-asyncssh.mk

diff --git a/package/Config.in b/package/Config.in
index fcc09b07c4..b8eaa83256 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -985,6 +985,7 @@ menu "External python modules"
 	source "package/python-asgiref/Config.in"
 	source "package/python-asn1crypto/Config.in"
 	source "package/python-asttokens/Config.in"
+	source "package/python-asyncssh/Config.in"
 	source "package/python-async-generator/Config.in"
 	source "package/python-async-lru/Config.in"
 	source "package/python-async-timeout/Config.in"
diff --git a/package/python-asyncssh/Config.in b/package/python-asyncssh/Config.in
new file mode 100644
index 0000000000..eef4478f3c
--- /dev/null
+++ b/package/python-asyncssh/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_ASYNCSSH
+	bool "python-asyncssh"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-cryptography
+	select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
+	select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
+	help
+	  AsyncSSH: Asynchronous SSHv2 client and server library.
+
+	  http://asyncssh.timeheart.net
diff --git a/package/python-asyncssh/python-asyncssh.hash b/package/python-asyncssh/python-asyncssh.hash
new file mode 100644
index 0000000000..0d2a8b70c6
--- /dev/null
+++ b/package/python-asyncssh/python-asyncssh.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/asyncssh/json
+md5  4194feb9e0d17a0750f107f3445ff9f7  asyncssh-2.14.1.tar.gz
+sha256  1ac31c333a0d83c88831523245500caa814503423741b0e465339ef6da5b5e29  asyncssh-2.14.1.tar.gz
+# Locally computed sha256 checksums
+sha256  0becf16567beb77fa252b7664631dd177c8f9a1889e48995b45379c7130e5303  LICENSE
diff --git a/package/python-asyncssh/python-asyncssh.mk b/package/python-asyncssh/python-asyncssh.mk
new file mode 100644
index 0000000000..d3bf092221
--- /dev/null
+++ b/package/python-asyncssh/python-asyncssh.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-asyncssh
+#
+################################################################################
+
+PYTHON_ASYNCSSH_VERSION = 2.14.1
+PYTHON_ASYNCSSH_SOURCE = asyncssh-$(PYTHON_ASYNCSSH_VERSION).tar.gz
+PYTHON_ASYNCSSH_SITE = https://files.pythonhosted.org/packages/5f/86/59278fefc49ddcc10567e52a8e0e1553fc936584e241d516b5682d55ea17
+PYTHON_ASYNCSSH_SETUP_TYPE = setuptools
+PYTHON_ASYNCSSH_LICENSE = EPL-2.0
+PYTHON_ASYNCSSH_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/python-asyncssh: new package
  2023-12-14 17:53 [Buildroot] [PATCH 1/1] package/python-asyncssh: new package James Hilliard
@ 2023-12-25 10:29 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-12-25 10:29 UTC (permalink / raw)
  To: James Hilliard; +Cc: Asaf Kahlon, buildroot

Hello James,

On Thu, 14 Dec 2023 10:53:10 -0700
James Hilliard <james.hilliard1@gmail.com> wrote:

> +PYTHON_ASYNCSSH_VERSION = 2.14.1
> +PYTHON_ASYNCSSH_SOURCE = asyncssh-$(PYTHON_ASYNCSSH_VERSION).tar.gz
> +PYTHON_ASYNCSSH_SITE = https://files.pythonhosted.org/packages/5f/86/59278fefc49ddcc10567e52a8e0e1553fc936584e241d516b5682d55ea17
> +PYTHON_ASYNCSSH_SETUP_TYPE = setuptools
> +PYTHON_ASYNCSSH_LICENSE = EPL-2.0
> +PYTHON_ASYNCSSH_LICENSE_FILES = LICENSE

The COPYRIGHT file says the license is EPL-2.0 or GPL-2.0+, so I've
changed it to that, and added the COPYRIGHT file to the list of license
files, and I've applied.

One thing that would be nice for new Python packages would be to add a
runtime tests. These are relatively easy to add, and allow to verify
that all runtime dependencies are probably taken into account.

Thanks a lot for this contribution!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-25 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 17:53 [Buildroot] [PATCH 1/1] package/python-asyncssh: new package James Hilliard
2023-12-25 10:29 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox