From 3aae229dceae009db3c62ebc263592cd1a68371f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 19 Nov 2025 22:32:34 +0000 Subject: [PATCH] python3Packages.flax: 0.12.0 -> 0.12.1 Diff: https://github.com/google/flax/compare/v0.12.0...v0.12.1 Changelog: https://github.com/google/flax/releases/tag/v0.12.1 --- .../python-modules/flax/default.nix | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/flax/default.nix b/pkgs/development/python-modules/flax/default.nix index 5def21410d92..57f649c2d58b 100644 --- a/pkgs/development/python-modules/flax/default.nix +++ b/pkgs/development/python-modules/flax/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - fetchpatch, # build-system setuptools, @@ -39,27 +38,16 @@ buildPythonPackage rec { pname = "flax"; - version = "0.12.0"; + version = "0.12.1"; pyproject = true; src = fetchFromGitHub { owner = "google"; repo = "flax"; tag = "v${version}"; - hash = "sha256-ioMj8+TuOFX3t9p3oVaywaOQPFBgvNcy7b/2WX/yvXA="; + hash = "sha256-AUgNU1ww1Ic+lfdHtdP4fdFuvIatAXqs7AX615aVPKM="; }; - patches = [ - # Fixes TypeError: shard_map() got an unexpected keyword argument 'auto' - # TODO: remove when updating to the next release - # https://github.com/google/flax/pull/5020 - (fetchpatch { - name = "jax-0.8.0-compat"; - url = "https://github.com/google/flax/commit/5bf9b35ff03130f440a93a812fd8b47ec6a49add.patch"; - hash = "sha256-KYpa1wDQMt77XIDGQEg/VuU/OPPNp2enGSA986TZSLQ="; - }) - ]; - build-system = [ setuptools setuptools-scm @@ -95,12 +83,6 @@ buildPythonPackage rec { tensorflow ]; - pytestFlags = [ - # DeprecationWarning: Triggering of __jax_array__() during abstractification is deprecated. - # To avoid this error, either explicitly convert your object using jax.numpy.array(), or register your object as a pytree. - "-Wignore::DeprecationWarning" - ]; - disabledTestPaths = [ # Docs test, needs extra deps + we're not interested in it. "docs/_ext/codediff_test.py"