Skip to content

Commit

Permalink
python3-jsonschema: use version 4.17.3
Browse files Browse the repository at this point in the history
python3-dtschema doesn't support yet python3-jsonschema
with versions 4.18+, therefore the DTB checker of the
kernel is broken as-is in scarthgap.

To fix that in LuneOS, add python3-jsonschema_4.17.3.bb
in meta-webos-ports so that it will be picked for LuneOS.

See also devicetree-org/dt-schema#108

Signed-off-by: Christophe Chapuis <[email protected]>
  • Loading branch information
Tofee authored and Herrie82 committed Apr 22, 2024
1 parent 541bd70 commit 9426adc
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions meta-luneos/recipes-devtools/python/python3-jsonschema_4.17.3.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
SUMMARY = "An implementation of JSON Schema validation for Python"
HOMEPAGE = "https:/python-jsonschema/jsonschema"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=7a60a81c146ec25599a3e1dabb8610a8 \
file://json/LICENSE;md5=9d4de43111d33570c8fe49b4cb0e01af"

# The dt-schema utilities to check kernel's DTB does not yet
# support python3-jsonschema 4.18+, where the behavior has changed sensibly.
# https:/devicetree-org/dt-schema/issues/108

SRC_URI[sha256sum] = "0f864437ab8b6076ba6707453ef8f98a6a0d512a80e93f8abdb676f737ecb60d"

inherit pypi python_hatchling

PACKAGES =+ "${PN}-tests"
FILES:${PN}-tests = "${libdir}/${PYTHON_DIR}/site-packages/jsonschema/tests"

DEPENDS += "python3-hatch-fancy-pypi-readme-native python3-hatch-vcs-native "

PACKAGECONFIG ??= "format"
PACKAGECONFIG[format] = ",,,\
python3-idna \
python3-jsonpointer \
python3-webcolors \
python3-rfc3987 \
python3-rfc3339-validator \
"
PACKAGECONFIG[nongpl] = ",,,\
python3-idna \
python3-jsonpointer \
python3-webcolors \
python3-rfc3986-validator \
python3-rfc3339-validator \
"

RDEPENDS:${PN} += " \
python3-attrs \
python3-core \
python3-datetime \
python3-importlib-metadata \
python3-io \
python3-json \
python3-netclient \
python3-numbers \
python3-pprint \
python3-pyrsistent \
python3-zipp \
"

RDEPENDS:${PN}-tests = "${PN}"

BBCLASSEXTEND = "native nativesdk"

0 comments on commit 9426adc

Please sign in to comment.