Message ID | 20220511080148.5084-1-yegorslists@googlemail.com |
---|---|
State | Accepted |
Headers | show |
Series | package/python-pylibfdt: new package | expand |
On Wed, 11 May 2022 10:01:48 +0200 yegorslists--- via buildroot <buildroot@buildroot.org> wrote: > +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
diff --git a/package/Config.in b/package/Config.in index a693761f18..17789be100 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/python-pylibfdt/Config.in b/package/python-pylibfdt/Config.in new file mode 100644 index 0000000000..8fc1cdb064 --- /dev/null +++ b/package/python-pylibfdt/Config.in @@ -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 diff --git a/package/python-pylibfdt/python-pylibfdt.hash b/package/python-pylibfdt/python-pylibfdt.hash new file mode 100644 index 0000000000..056fd3a62e --- /dev/null +++ b/package/python-pylibfdt/python-pylibfdt.hash @@ -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 diff --git a/package/python-pylibfdt/python-pylibfdt.mk b/package/python-pylibfdt/python-pylibfdt.mk new file mode 100644 index 0000000000..d4d0b20625 --- /dev/null +++ b/package/python-pylibfdt/python-pylibfdt.mk @@ -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))