Skip to content

Add jsonschema-rs package#559

Open
evroon wants to merge 2 commits intopyodide:mainfrom
evroon:jsonschema-rs
Open

Add jsonschema-rs package#559
evroon wants to merge 2 commits intopyodide:mainfrom
evroon:jsonschema-rs

Conversation

@evroon
Copy link
Copy Markdown

@evroon evroon commented Apr 7, 2026

Adds the jsonschema-rs package

I am aware there is already a jsonschema package in pyodide but it doesn't have proper typing (and is less performant than jsonschema-rs).

See discussion regarding how to build this: pyodide/pyodide#6178

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Package Build Results

Total packages built: 24
Total build time: 0:05:58

Package Build Times (click to expand)
Package Build Time
libopenblas 5m 17s
jsonschema-rs 2m 13s
libf2c 40s
cffi 12s
regex 10s
MarkupSafe 3s
pydoc_data 3s
atomicwrites 2s
pycparser 2s
micropip 1s
pytz 1s
py 1s
Jinja2 1s
setuptools 1s
six 1s
tblib 1s
iniconfig 1s
attrs 1s
pytest-asyncio 1s
pyparsing 1s
more-itertools 1s
pluggy 1s
pytest 1s
exceptiongroup 0s

Longest build: libopenblas (5m 17s)
Packages built in more than 10 minutes: 0

Copy link
Copy Markdown
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing, @evroon! This is an interesting package; I didn't know something like it existed. I'm going to find it pretty useful for my side projects and other repos I contribute to. :)

Could you please add a test or two? They don't have to be complicated; just a few tests from the repository's test suite that ensure basic functionality works should suffice.

top-level:
- jsonschema_rs
source:
url: https://files.pythonhosted.org/packages/d2/7b/40ed0aa40ff2f3bc9bfccf20ea29d9a99199a8eefda26ae9d65601c144fa/jsonschema_rs-0.45.0.tar.gz
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyPI has predictable URLs for sdists (and wheels, too), so this can be simplified as follows:

Suggested change
url: https://files.pythonhosted.org/packages/d2/7b/40ed0aa40ff2f3bc9bfccf20ea29d9a99199a8eefda26ae9d65601c144fa/jsonschema_rs-0.45.0.tar.gz
url: https://files.pythonhosted.org/packages/source/j/jsonschema_rs/jsonschema_rs-0.45.0.tar.gz

If you use pyodide skeleton to create the recipe, it will automatically resolve the URLs. :D

@ryanking13
Copy link
Copy Markdown
Member

Thanks for the contribution @evroon. Actually, would you like to contact to the jsonschema-rs maintainer and ask to include pyodide build in their ci and publish it to PyPI directly? We've been maintaining this repository as there was no way to host WASM wheels before. But we just got PEP 783 accepted (yesterday!) and it will soon (in a few days) possible to publish wasm wheels to Pyodide. So we do not want to maintain these packages ourselves anymore.

It should be good for you as well as if you add the package here, we will ping you anytime we have issues with this pacakge.

@evroon
Copy link
Copy Markdown
Author

evroon commented Apr 8, 2026

Congrats on the PEP! Yes I'll open an issue in that repo and potentially make a PR. I guess I should take a project like polars as an example to follow on setting this up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants