From 4d6203cc45896e2f6e899c5a602dc3babb1d847b Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 7 Jan 2026 21:27:02 -0800 Subject: [PATCH 1/2] python3Packages.smolagents: 1.21.3 -> 1.23.0; fix python3.14 build CHANGELOG: https://github.com/huggingface/smolagents/releases/tag/v1.23.0 DIFF: https://github.com/huggingface/smolagents/compare/v1.21.3...v1.23.0 --- .../python-modules/smolagents/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/smolagents/default.nix b/pkgs/development/python-modules/smolagents/default.nix index 15c74d3454de..57278687743d 100644 --- a/pkgs/development/python-modules/smolagents/default.nix +++ b/pkgs/development/python-modules/smolagents/default.nix @@ -47,13 +47,14 @@ # tests ipython, pytest-datadir, + pytest-timeout, pytestCheckHook, wikipedia-api, }: buildPythonPackage (finalAttrs: { pname = "smolagents"; - version = "1.21.3"; + version = "1.23.0"; pyproject = true; src = fetchFromGitHub { @@ -129,6 +130,7 @@ buildPythonPackage (finalAttrs: { pytestCheckHook wikipedia-api ] + ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ pytest-timeout ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; pythonImportsCheck = [ "smolagents" ]; @@ -173,6 +175,16 @@ buildPythonPackage (finalAttrs: { "test_init_agent_with_different_toolsets" "test_multiagents_save" "test_new_instance" + + # Requires optional "blaxel" dependencies + "test_blaxel_executor_instantiation_with_blaxel_sdk" + "test_blaxel_executor_custom_parameters" + "test_blaxel_executor_cleanup" + # Requires optional "modal" dependencies + "test_sandbox_lifecycle" + # TypeError: 'function' object is not subscriptable + "test_stream_to_gradio_memory_step" + ]; __darwinAllowLocalNetworking = true; From 373b6caf7cf358d7d7ff23fc9847f36c70482bbf Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sun, 11 Jan 2026 13:38:03 -0800 Subject: [PATCH 2/2] python3Packages.smolagents: update optional-dependencies to match upstream --- pkgs/development/python-modules/smolagents/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/smolagents/default.nix b/pkgs/development/python-modules/smolagents/default.nix index 57278687743d..782a446b7ebe 100644 --- a/pkgs/development/python-modules/smolagents/default.nix +++ b/pkgs/development/python-modules/smolagents/default.nix @@ -78,6 +78,10 @@ buildPythonPackage (finalAttrs: { optional-dependencies = lib.fix (self: { audio = [ soundfile ] ++ self.torch; bedrock = [ boto3 ]; + # blaxel = [ + # blaxel + # websocket-client + # ]; docker = [ docker websocket-client @@ -92,6 +96,10 @@ buildPythonPackage (finalAttrs: { mcp mcpadapt ]; + # modal = [ + # modal + # websocket-client + # ]; # mlx-lm = [ mlx-lm ]; openai = [ openai ]; # telemetry = [