Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1 RESEND] package/python-construct: new package
@ 2022-08-03 15:42 Martin Povišer
  2022-08-03 19:58 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Povišer @ 2022-08-03 15:42 UTC (permalink / raw)
  To: buildroot; +Cc: Martin Povišer, Thomas Petazzoni

construct is a Python library for declarative serialization/
deserialization of structured binary data.

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
---
I don't know if you set a bar for the inclusion of packages in
buildroot, but I think by its nature construct makes for a useful
package on embedded systems.

DEVELOPERS                                     |  3 +++
package/Config.in                              |  1 +
package/python-construct/Config.in             |  6 ++++++
package/python-construct/python-construct.hash |  5 +++++
package/python-construct/python-construct.mk   | 15 +++++++++++++++
5 files changed, 30 insertions(+)
create mode 100644 package/python-construct/Config.in
create mode 100644 package/python-construct/python-construct.hash
create mode 100644 package/python-construct/python-construct.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 63bb80fc9d..a91e566bdd 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1924,6 +1924,9 @@ F:	package/tslib/
F:	package/x11r7/xdriver_xf86-input-tslib/
F:	package/x11vnc/

+N:  Martin Povišer <povik+lin@cutebit.org>
+F:  package/python-construct/
+
N:	Masahiro Yamada <yamada.masahiro@socionext.com>
F:	board/arm/foundation-v8/
F:	configs/arm_foundationv8_defconfig
diff --git a/package/Config.in b/package/Config.in
index 61783ba400..7663ce0fbf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -990,6 +990,7 @@ menu "External python modules"
	source "package/python-colorzero/Config.in"
	source "package/python-configshell-fb/Config.in"
	source "package/python-constantly/Config.in"
+	source "package/python-construct/Config.in"
	source "package/python-couchdb/Config.in"
	source "package/python-crayons/Config.in"
	source "package/python-crc16/Config.in"
diff --git a/package/python-construct/Config.in b/package/python-construct/Config.in
new file mode 100644
index 0000000000..ace47c9989
--- /dev/null
+++ b/package/python-construct/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_CONSTRUCT
+	bool "python-construct"
+	help
+	  A powerful declarative symmetric parser/builder for binary data.
+
+	  https://construct.readthedocs.io/
diff --git a/package/python-construct/python-construct.hash b/package/python-construct/python-construct.hash
new file mode 100644
index 0000000000..2c3b898121
--- /dev/null
+++ b/package/python-construct/python-construct.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/project/construct
+md5  e426d3dd1566066e4ef1a03fe474dec0  construct-2.10.68.tar.gz 
+sha256  7b2a3fd8e5f597a5aa1d614c3bd516fa065db01704c72a1efaaeec6ef23d8b45  construct-2.10.68.tar.gz 
+# Locally computed sha256 checksums
+sha256  1552d70acfd0d3fe464ce13d30113ddc6fe4bac21e52212acc98509e3cc1a8f4  LICENSE
diff --git a/package/python-construct/python-construct.mk b/package/python-construct/python-construct.mk
new file mode 100644
index 0000000000..db8dc0cf26
--- /dev/null
+++ b/package/python-construct/python-construct.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-construct
+#
+################################################################################
+
+PYTHON_CONSTRUCT_VERSION = 2.10.68
+PYTHON_CONSTRUCT_SOURCE = construct-$(PYTHON_CONSTRUCT_VERSION).tar.gz
+PYTHON_CONSTRUCT_SITE = https://files.pythonhosted.org/packages/e0/b7/a4a032e94bcfdff481f2e6fecd472794d9da09f474a2185ed33b2c7cad64
+PYTHON_CONSTRUCT_SETUP_TYPE = setuptools
+PYTHON_CONSTRUCT_LICENSE = MIT
+PYTHON_CONSTRUCT_LICENSE_FILES = LICENSE
+PYTHON_CONSTRUCT_DEPENDENCIES = host-python-setuptools-scm
+
+$(eval $(python-package))
-- 
2.37.1

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

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

end of thread, other threads:[~2022-08-03 20:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 15:42 [Buildroot] [PATCH 1/1 RESEND] package/python-construct: new package Martin Povišer
2022-08-03 19:58 ` Thomas Petazzoni via buildroot
2022-08-03 20:19   ` Martin Povišer

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