From 12ab7cb9a4bb2b12e00f0a64fa62fa6ae48b3506 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 5 Apr 2026 21:26:05 +0000 Subject: [PATCH] python3Packages.keras: 3.13.2 -> 3.14.0 Diff: https://github.com/keras-team/keras/compare/v3.13.2...v3.14.0 Changelog: https://github.com/keras-team/keras/releases/tag/v3.14.0 --- .../python-modules/keras/default.nix | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/keras/default.nix b/pkgs/development/python-modules/keras/default.nix index 27095bc830bb..caec623e5d16 100644 --- a/pkgs/development/python-modules/keras/default.nix +++ b/pkgs/development/python-modules/keras/default.nix @@ -3,7 +3,6 @@ stdenv, buildPythonPackage, fetchFromGitHub, - fetchpatch, # build-system setuptools, @@ -38,24 +37,16 @@ buildPythonPackage (finalAttrs: { pname = "keras"; - version = "3.13.2"; + version = "3.14.0"; pyproject = true; src = fetchFromGitHub { owner = "keras-team"; repo = "keras"; tag = "v${finalAttrs.version}"; - hash = "sha256-7s3bJdkS/G/Ydj9txbtGrqGCE3PjjS1ZiuoGOzk+UIg="; + hash = "sha256-EMwqo+0mIwjDY3wKW4idiAczSSPIGjTRNIYlqPDwd+w="; }; - patches = [ - (fetchpatch { - name = "numpy-2.4-compat.patch"; - url = "https://github.com/keras-team/keras/commit/bc3bc4fc167049eb35136deaf5680cdaacc80371.patch"; - hash = "sha256-+eN3QVBpHGIv67hbRxzVHeKjFZIz5LCdbNO0AL65OoQ="; - }) - ]; - build-system = [ setuptools ]; @@ -95,6 +86,7 @@ buildPythonPackage (finalAttrs: { disabledTests = [ # Require unpackaged `grain` + "test_basics_grain" "test_fit_with_data_adapter_grain_dataloader" "test_fit_with_data_adapter_grain_datast" "test_fit_with_data_adapter_grain_datast_with_len" @@ -109,7 +101,13 @@ buildPythonPackage (finalAttrs: { "test_image_dataset_from_directory_pad_to_aspect_ratio_grain" "test_image_dataset_from_directory_shuffle_grain" "test_image_dataset_from_directory_validation_split_grain" + "test_no_targets_grain" + "test_not_batched_grain" "test_sample_count_grain" + "test_sampling_rate_grain" + "test_sequence_stride_grain" + "test_shuffle_grain" + "test_start_and_end_index_grain" "test_text_dataset_from_directory_binary_grain" "test_text_dataset_from_directory_follow_links_grain" "test_text_dataset_from_directory_manual_labels_grain" @@ -117,6 +115,7 @@ buildPythonPackage (finalAttrs: { "test_text_dataset_from_directory_not_batched_grain" "test_text_dataset_from_directory_standalone_grain" "test_text_dataset_from_directory_validation_split_grain" + "test_timeseries_regression_grain" # Tries to install the package in the sandbox "test_keras_imports" @@ -132,8 +131,11 @@ buildPythonPackage (finalAttrs: { disabledTestPaths = [ # Require unpackaged `grain` "keras/src/layers/preprocessing/data_layer_test.py" + "keras/src/layers/preprocessing/discretization_test.py" "keras/src/layers/preprocessing/image_preprocessing/resizing_test.py" "keras/src/layers/preprocessing/rescaling_test.py" + "keras/src/layers/preprocessing/string_lookup_test.py" + "keras/src/layers/preprocessing/text_vectorization_test.py" "keras/src/trainers/data_adapters/grain_dataset_adapter_test.py" # These tests succeed when run individually, but crash within the full test suite: