mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 15:11:30 +00:00
python3Packages.flax: fix test with new jax
This commit is contained in:
committed by
Gaetan Lepage
parent
defc2a7926
commit
183181afcc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user