From fab930d8d0ab364a88944d655ef26327b0b121d0 Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Mon, 25 Jan 2021 15:00:46 +0800 Subject: python3-xmlschema: Yocto recipes for validating against XSD 1.1 This patch adds recipes for xmlschema and its dependency in order to enable XML validation against XSD 1.1 in Python. Signed-off-by: Junjie Mao Acked-by: Trevor Gamblin Signed-off-by: Khem Raj --- .../python/python3-elementpath_2.1.2.bb | 12 ++++++++++++ .../python/python3-xmlschema_1.4.1.bb | 20 ++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb b/meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb new file mode 100644 index 0000000000..f47f152229 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-elementpath_2.1.2.bb @@ -0,0 +1,12 @@ +DESCRIPTION = "Provide XPath 1.0 and 2.0 selectors for Python's ElementTree XML data structures, both for the standard ElementTree library and for the lxml.etree library." +HOMEPAGE = "https://github.com/sissaschool/elementpath" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=5dbb7fb7d72da3921202dd7b995d3ecf" + +SRC_URI[md5sum] = "887f60e9c4fb9b0804a38372b2798101" +SRC_URI[sha256sum] = "23e1fed8d196d9a6cc4d220ef11fbe7eb8cff3a27848621c447e9d96134b2085" + +PYPI_PACKAGE = "elementpath" +inherit pypi setuptools3 + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb b/meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb new file mode 100644 index 0000000000..c609931056 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-xmlschema_1.4.1.bb @@ -0,0 +1,20 @@ +SUMMARY = "The xmlschema library is an implementation of XML Schema for Python (supports Python 3.6+)." +HOMEPAGE = "https://github.com/sissaschool/xmlschema" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=47489cb18c469474afeb259ed1d4832f" + +SRC_URI[md5sum] = "f4c46f8c4415a0ca31dc2f623b668664" +SRC_URI[sha256sum] = "ade693114ff2e4a9ed5a2371ce29ae888f689bc58e326e5796f8a7dc8954dd4a" + +PYPI_PACKAGE = "xmlschema" +inherit pypi setuptools3 + +DEPENDS += "\ + ${PYTHON_PN}-elementpath \ +" + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-elementpath \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf