From 5ad8fb181e4f113901ebaa045b6a903afa367e78 Mon Sep 17 00:00:00 2001 From: Nicola Lunghi Date: Fri, 15 Nov 2019 17:46:20 +0000 Subject: python-jsonschema: add PACKAGECONFIG nongpl option This is the backport of a patch upstream - 10f8a3e Add format validators as separate modules This will add a PACKAGECONFIG = "nongpl" option to include only dependencies not licensed under the GPL license. Signed-off-by: Nicola Lunghi Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python-jsonschema.inc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'meta-python/recipes-devtools/python/python-jsonschema.inc') diff --git a/meta-python/recipes-devtools/python/python-jsonschema.inc b/meta-python/recipes-devtools/python/python-jsonschema.inc index c1b11a2cc7..837d5760cd 100644 --- a/meta-python/recipes-devtools/python/python-jsonschema.inc +++ b/meta-python/recipes-devtools/python/python-jsonschema.inc @@ -5,6 +5,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=7a60a81c146ec25599a3e1dabb8610a8 \ file://json/LICENSE;md5=9d4de43111d33570c8fe49b4cb0e01af" DEPENDS += "${PYTHON_PN}-vcversioner-native ${PYTHON_PN}-setuptools-scm-native" +FILESEXTRAPATHS_prepend := "${THISDIR}/python-jsonschema:" + +SRC_URI_append = " file://0001-setup.cfg-add-non-GPL-format-option.patch" + SRC_URI[md5sum] = "a802ab85600074a726ef6acc4e6a8148" SRC_URI[sha256sum] = "2fa0684276b6333ff3c0b1b27081f4b2305f0a36cf702a23db50edb141893c3f" @@ -16,6 +20,13 @@ PACKAGECONFIG[format] = ",,,\ ${PYTHON_PN}-rfc3987 \ ${PYTHON_PN}-strict-rfc3339 \ " +PACKAGECONFIG[nongpl] = ",,,\ + ${PYTHON_PN}-idna \ + ${PYTHON_PN}-jsonpointer \ + ${PYTHON_PN}-webcolors \ + ${PYTHON_PN}-rfc3986-validator \ + ${PYTHON_PN}-rfc3339-validator \ +" RDEPENDS_${PN} += " \ ${PYTHON_PN}-attrs \ -- cgit v1.2.3-54-g00ecf