* [Buildroot] [PATCH 1/1] package/python-rtoml: new package
@ 2022-05-11 21:18 James Hilliard
2022-08-02 22:05 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2022-05-11 21:18 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-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
diff --git a/package/Config.in b/package/Config.in
index 8892134133..741f9f9a0c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/python-rtoml/Config.in b/package/python-rtoml/Config.in
new file mode 100644
index 0000000000..410976f138
--- /dev/null
+++ b/package/python-rtoml/Config.in
@@ -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
diff --git a/package/python-rtoml/python-rtoml.hash b/package/python-rtoml/python-rtoml.hash
new file mode 100644
index 0000000000..04d22ed1a4
--- /dev/null
+++ b/package/python-rtoml/python-rtoml.hash
@@ -0,0 +1,4 @@
+# Locally calculated after vendoring
+sha256 821a430ab6587bdaaf7cb95044e8e0d99c77c6aed0adce5a370045b270f7ee20 rtoml-0.8.0.tar.gz
+# Locally computed sha256 checksums
+sha256 cd5ffde80e6d3286a2e2e5f02fb2cb07b823931ca368e7c735a6c5f5aebe7103 LICENSE
diff --git a/package/python-rtoml/python-rtoml.mk b/package/python-rtoml/python-rtoml.mk
new file mode 100644
index 0000000000..9afe8c0315
--- /dev/null
+++ b/package/python-rtoml/python-rtoml.mk
@@ -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))
--
2.25.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-rtoml: new package
2022-05-11 21:18 [Buildroot] [PATCH 1/1] package/python-rtoml: new package James Hilliard
@ 2022-08-02 22:05 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-08-02 22:05 UTC (permalink / raw)
To: James Hilliard; +Cc: Asaf Kahlon, buildroot
On Wed, 11 May 2022 15:18:45 -0600
James Hilliard <james.hilliard1@gmail.com> wrote:
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> 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
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
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:[~2022-08-02 22:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-11 21:18 [Buildroot] [PATCH 1/1] package/python-rtoml: new package James Hilliard
2022-08-02 22:05 ` 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