Skip to contentSkip to conversation

package/python-rtoml: new package

PATCH In review James Hilliard 2 participants 2 messages May 11, 2022 – Aug 2, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-rtoml: new package

---
 package/Config.in                      |  1 +
 package/python-rtoml/Config.in         |  7 +++++++
 package/python-rtoml/python-rtoml.hash |  4 ++++
 package/python-rtoml/python-rtoml.mk   | 22 ++++++++++++++++++++++
 4 files changed, 34 insertions(+)
 create mode 100644 package/python-rtoml/Config.in
 create mode 100644 package/python-rtoml/python-rtoml.hash
 create mode 100644 package/python-rtoml/python-rtoml.mk
package/Config.in +1 -0
index 8892134133..741f9f9a0c 100644
@@ -1208,6 +1208,7 @@ menu "External python modules"
 	source "package/python-rpi-gpio/Config.in"
 	source "package/python-rpi-ws281x/Config.in"
 	source "package/python-rsa/Config.in"
+	source "package/python-rtoml/Config.in"
 	source "package/python-rtslib-fb/Config.in"
 	source "package/python-s3transfer/Config.in"
 	source "package/python-scandir/Config.in"
package/python-rtoml/Config.in new file +7 -0
new file mode 100644
index 0000000000..410976f138
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_RTOML
+	bool "python-rtoml"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+	help
+	  A better TOML library for python implemented in rust.
+
+	  https://github.com/samuelcolvin/rtoml
package/python-rtoml/python-rtoml.hash new file +4 -0
new file mode 100644
index 0000000000..04d22ed1a4
@@ -0,0 +1,4 @@
+# Locally calculated after vendoring
+sha256  821a430ab6587bdaaf7cb95044e8e0d99c77c6aed0adce5a370045b270f7ee20  rtoml-0.8.0.tar.gz
+# Locally computed sha256 checksums
+sha256  cd5ffde80e6d3286a2e2e5f02fb2cb07b823931ca368e7c735a6c5f5aebe7103  LICENSE
package/python-rtoml/python-rtoml.mk new file +22 -0
new file mode 100644
index 0000000000..9afe8c0315
@@ -0,0 +1,22 @@
+################################################################################
+#
+# python-rtoml
+#
+################################################################################
+
+PYTHON_RTOML_VERSION = 0.8.0
+PYTHON_RTOML_SOURCE = rtoml-$(PYTHON_RTOML_VERSION).tar.gz
+PYTHON_RTOML_SITE = https://files.pythonhosted.org/packages/33/a6/b42d8e0e28bec9fd7fdbafb2d76db3f8578f151a669eba564d422756d909
+PYTHON_RTOML_SETUP_TYPE = setuptools
+PYTHON_RTOML_LICENSE = MIT
+PYTHON_RTOML_LICENSE_FILES = LICENSE
+PYTHON_RTOML_DEPENDENCIES = host-python-setuptools-rust host-rustc
+PYTHON_RTOML_ENV = \
+	$(PKG_CARGO_ENV) \
+	PYO3_CROSS_LIB_DIR="$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)"
+# We need to vendor the Cargo crates at download time
+PYTHON_RTOML_DOWNLOAD_POST_PROCESS = cargo
+PYTHON_RTOML_DOWNLOAD_DEPENDENCIES = host-rustc
+PYTHON_RTOML_DL_ENV = $(PKG_CARGO_ENV)
+
+$(eval $(python-package))
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · On Wed, 11 May 2022 15:18:45 -0600 James Hilliard <[email protected]>…
---
 package/Config.in                      |  1 +
 package/python-rtoml/Config.in         |  7 +++++++
 package/python-rtoml/python-rtoml.hash |  4 ++++
 package/python-rtoml/python-rtoml.mk   | 22 ++++++++++++++++++++++
 4 files changed, 34 insertions(+)
 create mode 100644 package/python-rtoml/Config.in
 create mode 100644 package/python-rtoml/python-rtoml.hash
 create mode 100644 package/python-rtoml/python-rtoml.mk

I have applied, after adding a runtime test, and adding the missing entry to the DEVELOPERS file.

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot