From d29ce3eaf82ea4840c8ae2ae8f98d6192a8b3ebc Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 18 Dec 2025 20:09:26 +0000 Subject: [PATCH] python3Packages.keras: 3.12.0 -> 3.13.0 Diff: https://github.com/keras-team/keras/compare/v3.12.0...v3.13.0 Changelog: https://github.com/keras-team/keras/releases/tag/v3.13.0 --- .../python-modules/keras/default.nix | 98 ++----------------- 1 file changed, 6 insertions(+), 92 deletions(-) diff --git a/pkgs/development/python-modules/keras/default.nix b/pkgs/development/python-modules/keras/default.nix index e7543e101649..70d6a6e5bd7a 100644 --- a/pkgs/development/python-modules/keras/default.nix +++ b/pkgs/development/python-modules/keras/default.nix @@ -14,14 +14,15 @@ ml-dtypes, namex, numpy, - tf2onnx, onnxruntime, optree, + orbax-checkpoint, packaging, pythonAtLeast, rich, scikit-learn, tensorflow, + tf2onnx, # tests dm-tree, @@ -36,26 +37,16 @@ buildPythonPackage rec { pname = "keras"; - version = "3.12.0"; + version = "3.13.0"; pyproject = true; src = fetchFromGitHub { owner = "keras-team"; repo = "keras"; tag = "v${version}"; - hash = "sha256-xuCxeQD8NAn7zlqCG+GyFjL6NlnIkGie+4GxzLGsyUg="; + hash = "sha256-JsWmwJbIJIF3eEj7wYzNOSAiNHQkQ5LHKrE0lVQtU/U="; }; - # Use a raw string to prevent LaTeX codes from being interpreted as escape sequences. - # SyntaxError: invalid escape sequence '\h - # Fix submitted upstream: https://github.com/keras-team/keras/pull/21790 - postPatch = '' - substituteInPlace keras/src/quantizers/gptq_test.py \ - --replace-fail \ - 'CALIBRATION_TEXT = """' \ - 'CALIBRATION_TEXT = r"""' - ''; - build-system = [ setuptools ]; @@ -66,13 +57,14 @@ buildPythonPackage rec { ml-dtypes namex numpy - tf2onnx onnxruntime optree + orbax-checkpoint packaging rich scikit-learn tensorflow + tf2onnx ] ++ lib.optionals (pythonAtLeast "3.12") [ distutils ]; @@ -122,84 +114,6 @@ buildPythonPackage rec { # TypeError: this __dict__ descriptor does not support '_DictWrapper' objects "test_reloading_default_saved_model" - - # E AssertionError: - # E - float32 - # E + float64 - "test_angle_bool" - "test_angle_int16" - "test_angle_int32" - "test_angle_int8" - "test_angle_uint16" - "test_angle_uint32" - "test_angle_uint8" - "test_bartlett_bfloat16" - "test_bartlett_bool" - "test_bartlett_float16" - "test_bartlett_float32" - "test_bartlett_float64" - "test_bartlett_int16" - "test_bartlett_int32" - "test_bartlett_int64" - "test_bartlett_int8" - "test_bartlett_none" - "test_bartlett_uint16" - "test_bartlett_uint32" - "test_bartlett_uint8" - "test_blackman_bfloat16" - "test_blackman_bool" - "test_blackman_float16" - "test_blackman_float32" - "test_blackman_float64" - "test_blackman_int16" - "test_blackman_int32" - "test_blackman_int64" - "test_blackman_int8" - "test_blackman_none" - "test_blackman_uint16" - "test_blackman_uint32" - "test_blackman_uint8" - "test_eye_none" - "test_hamming_bfloat16" - "test_hamming_bool" - "test_hamming_float16" - "test_hamming_float32" - "test_hamming_float64" - "test_hamming_int16" - "test_hamming_int32" - "test_hamming_int64" - "test_hamming_int8" - "test_hamming_none" - "test_hamming_uint16" - "test_hamming_uint32" - "test_hamming_uint8" - "test_hanning_bfloat16" - "test_hanning_bool" - "test_hanning_float16" - "test_hanning_float32" - "test_hanning_float64" - "test_hanning_int16" - "test_hanning_int32" - "test_hanning_int64" - "test_hanning_int8" - "test_hanning_none" - "test_hanning_uint16" - "test_hanning_uint32" - "test_hanning_uint8" - "test_identity_none" - "test_kaiser_bfloat16" - "test_kaiser_bool" - "test_kaiser_float16" - "test_kaiser_float32" - "test_kaiser_float64" - "test_kaiser_int16" - "test_kaiser_int32" - "test_kaiser_int64" - "test_kaiser_int8" - "test_kaiser_none" - "test_kaiser_uint16" - "test_kaiser_uint32" - "test_kaiser_uint8" ] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ # Hangs forever