package/python-pylibfdt: new package
PATCH 1/1 package/python-pylibfdt: new package
From: Yegor Yefremov <[email protected]>
Signed-off-by Yegor Yefremov <[email protected]>
--- package/Config.in | 1 + package/python-pylibfdt/Config.in | 6 ++++++ package/python-pylibfdt/python-pylibfdt.hash | 6 ++++++ package/python-pylibfdt/python-pylibfdt.mk | 15 +++++++++++++++ 4 files changed, 28 insertions(+) create mode 100644 package/python-pylibfdt/Config.in create mode 100644 package/python-pylibfdt/python-pylibfdt.hash create mode 100644 package/python-pylibfdt/python-pylibfdt.mk
package/Config.in +1 -0
@@ -1164,6 +1164,7 @@ menu "External python modules" source "package/python-pyicu/Config.in" source "package/python-pyinotify/Config.in" source "package/python-pyjwt/Config.in" + source "package/python-pylibfdt/Config.in" source "package/python-pylibftdi/Config.in" source "package/python-pylru/Config.in" source "package/python-pymodbus/Config.in"
package/python-pylibfdt/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_PYLIBFDT + bool "python-pylibfdt" + help + Python bindings for the Device Tree Compiler (dtc) toolchain. + + https://github.com/devicetree-org/pylibfdt
package/python-pylibfdt/python-pylibfdt.hash new file +6 -0
@@ -0,0 +1,6 @@ +# md5, sha256 from https://pypi.python.org/pypi/pylibfdt/json +md5 5765c20ac6cde517d5b7218503ab707b pylibfdt-1.6.1.tar.gz +sha256 90c667c5adf44c6ab2f13bdc566598897784c7b781bed91064e7373bd270b778 pylibfdt-1.6.1.tar.gz +# Locally computed +sha256 6313108c23efffa36948f8b2cff1560a5935373b527b0e1a837cc77e6ed1bacd BSD-2-Clause +sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 GPL
package/python-pylibfdt/python-pylibfdt.mk new file +15 -0
@@ -0,0 +1,15 @@ +################################################################################ +# +# python-pylibfdt +# +################################################################################ + +PYTHON_PYLIBFDT_VERSION = 1.6.1 +PYTHON_PYLIBFDT_SOURCE = pylibfdt-$(PYTHON_PYLIBFDT_VERSION).tar.gz +PYTHON_PYLIBFDT_SITE = https://files.pythonhosted.org/packages/15/3c/40b1d6a1df9dbc9d9ba5700a47ad95ca1e984f18daf25ede0da5f67d0cf7 +PYTHON_PYLIBFDT_SETUP_TYPE = setuptools +PYTHON_PYLIBFDT_LICENSE = BSD-2-Clause, GPL-2.0+ +PYTHON_PYLIBFDT_LICENSE_FILES = BSD-2-Clause GPL +PYTHON_PYLIBFDT_DEPENDENCIES = host-python-setuptools-scm host-swig + +$(eval $(python-package))
Signature · 6 lines
2.17.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
package/python-pylibfdt/python-pylibfdt.mk line 11
Quoted 5 lines · On Wed, 11 May 2022 10:01:48 +0200 yegorslists--- via buildroot…
package/python-pylibfdt/python-pylibfdt.mk new file +5
-0+PYTHON_PYLIBFDT_VERSION = 1.6.1 +PYTHON_PYLIBFDT_SOURCE = pylibfdt-$(PYTHON_PYLIBFDT_VERSION).tar.gz +PYTHON_PYLIBFDT_SITE = https://files.pythonhosted.org/packages/15/3c/40b1d6a1df9dbc9d9ba5700a47ad95ca1e984f18daf25ede0da5f67d0cf7 +PYTHON_PYLIBFDT_SETUP_TYPE = setuptools +PYTHON_PYLIBFDT_LICENSE = BSD-2-Clause, GPL-2.0+
According to the SPDX tags in the code, the license is BSD-2-Clause *OR* GPL-2.0+, so I changed that here, and applied.
I hope this will not cause any conflict with the bundled pylibfdt that exists in U-Boot for example, but we'll see :-)
A short comment on those new Python packages: it would sometimes be useful to have a corresponding runtime test in the support/testing/ infra, as it helps ensure that the dependencies have been properly taken into account in the packaging.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot