diff mbox series

[meta-oe,3/3] python3-uswid: Add initial support

Message ID 20230509065940.1584276-4-jun.nie@linaro.org
State Under Review
Headers show
Series Add necessary lib and python tool to handle CoSWID tag | expand

Commit Message

Jun Nie May 9, 2023, 6:59 a.m. UTC
Software Identification (SWID) tags provide an extensible XML-based structure
to identify and describe individual software components, patches, and
installation bundles.

CoSWID supports a similar set of semantics and features as SWID tags, as well
as new semantics that allow us to describe additional types of information,
all in a more memory efficient format.

python3-uswid is used to generate the CoSWID data blob. For example, fwupd
project requires CoSWID data to be embedded into firmware binary to hold the
version information.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
---
 .../recipes-devtools/python/python3-uswid_git.bb  | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-uswid_git.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-uswid_git.bb b/meta-python/recipes-devtools/python/python3-uswid_git.bb
new file mode 100644
index 0000000000..6b2089893f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uswid_git.bb
@@ -0,0 +1,15 @@ 
+SUMMARY = "A pure-python library for embedding CoSWID data"
+HOMEPAGE = "https://github.com/hughsie/python-uswid"
+SECTION = "devel/python"
+LICENSE = "LGPL-2.1-or-later"
+
+DEPENDS += " python3-cbor2 python3-lxml python3-pefile"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=40d2542b8c43a3ec2b7f5da31a697b88"
+
+SRC_URI = "git://github.com/hughsie/python-uswid.git;branch=main;protocol=https"
+SRCREV = "3223034abef88ae29cf79fdc7fe11ec7e21e11ff"
+S = "${WORKDIR}/git"
+
+inherit setuptools3 python3native
+
+BBCLASSEXTEND = "native nativesdk"