python3Packages.flax: fix test with new jax

This commit is contained in:
Michael Daniels
2026-06-19 22:06:11 -04:00
committed by Gaetan Lepage
parent defc2a7926
commit 183181afcc

View File

@@ -46,6 +46,14 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-a78KiTsCCARWZvbxz9QKdUKnjkDJGXcPVVJu5rU4m/U=";
};
# DeprecationWarning: `with mesh:` context manager has been deprecated. Please use `with jax.set_mesh(mesh):` instead.
postPatch = ''
substituteInPlace tests/nnx/transforms_test.py \
--replace-fail \
"with mesh:" \
"with jax.set_mesh(mesh):"
'';
build-system = [
setuptools
setuptools-scm