From 39e7237467fb0307fcb571eb8b28a329ade8f2a5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Feb 2026 00:28:03 +0100 Subject: [PATCH 1/3] python313Packages.anthropic: 0.75.0 -> 0.78.0 Diff: https://github.com/anthropics/anthropic-sdk-python/compare/v0.75.0...v0.78.0 Changelog: https://github.com/anthropics/anthropic-sdk-python/releases/tag/v0.78.0 --- pkgs/development/python-modules/anthropic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/anthropic/default.nix b/pkgs/development/python-modules/anthropic/default.nix index 6c1ed7d2b848..2544d1fbc39c 100644 --- a/pkgs/development/python-modules/anthropic/default.nix +++ b/pkgs/development/python-modules/anthropic/default.nix @@ -34,14 +34,14 @@ buildPythonPackage rec { pname = "anthropic"; - version = "0.75.0"; + version = "0.78.0"; pyproject = true; src = fetchFromGitHub { owner = "anthropics"; repo = "anthropic-sdk-python"; tag = "v${version}"; - hash = "sha256-wwaH9/o7qr8eXKvmKpj+/ubOdDydcXId/qiA6dXpd2I="; + hash = "sha256-IN+vlP10KxkuzTgGRKr2k7hBnGTGFWdsW9ams6W+7Ak="; }; postPatch = '' From 7a08af2ec9267f7edf05d611e4c6712019bc25fc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Feb 2026 00:30:02 +0100 Subject: [PATCH 2/3] python313Packages.anthropic: migrate to finalAttrs --- pkgs/development/python-modules/anthropic/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/anthropic/default.nix b/pkgs/development/python-modules/anthropic/default.nix index 2544d1fbc39c..ee0e03de351c 100644 --- a/pkgs/development/python-modules/anthropic/default.nix +++ b/pkgs/development/python-modules/anthropic/default.nix @@ -32,7 +32,7 @@ respx, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "anthropic"; version = "0.78.0"; pyproject = true; @@ -40,7 +40,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "anthropics"; repo = "anthropic-sdk-python"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-IN+vlP10KxkuzTgGRKr2k7hBnGTGFWdsW9ams6W+7Ak="; }; @@ -105,11 +105,11 @@ buildPythonPackage rec { meta = { description = "Anthropic's safety-first language model APIs"; homepage = "https://github.com/anthropics/anthropic-sdk-python"; - changelog = "https://github.com/anthropics/anthropic-sdk-python/releases/tag/${src.tag}"; + changelog = "https://github.com/anthropics/anthropic-sdk-python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.natsukium lib.maintainers.sarahec ]; }; -} +}) From 9d47822f0f44ac9afb75a3afe8b1dd58ce57632f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 6 Feb 2026 00:33:53 +0100 Subject: [PATCH 3/3] python313Packages.anthropic: adjust options-dependencies --- .../python-modules/anthropic/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/anthropic/default.nix b/pkgs/development/python-modules/anthropic/default.nix index ee0e03de351c..9fd45085942c 100644 --- a/pkgs/development/python-modules/anthropic/default.nix +++ b/pkgs/development/python-modules/anthropic/default.nix @@ -21,6 +21,10 @@ # optional dependencies google-auth, + boto3, + botocore, + aiohttp, + httpx-aiohttp, # test dirty-equals, @@ -67,7 +71,15 @@ buildPythonPackage (finalAttrs: { ]; optional-dependencies = { - vertex = [ google-auth ]; + aiohttp = [ + aiohttp + httpx-aiohttp + ]; + bedrock = [ + boto3 + botocore + ]; + vertex = [ google-auth ] ++ google-auth.optional-dependencies.requests; }; nativeCheckInputs = [