From c4b2d195c377b5fccf63cb93c2f91c602d04910d Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Thu, 5 Feb 2026 18:44:48 -0800 Subject: [PATCH] python3Packages.llm-anthropic: 0.20 -> 0.23 --- .../python-modules/llm-anthropic/default.nix | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/llm-anthropic/default.nix b/pkgs/development/python-modules/llm-anthropic/default.nix index e8592d1bd402..d508e74210ff 100644 --- a/pkgs/development/python-modules/llm-anthropic/default.nix +++ b/pkgs/development/python-modules/llm-anthropic/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchFromGitHub, setuptools, + json-schema-to-pydantic, llm, llm-anthropic, anthropic, @@ -12,16 +13,16 @@ writableTmpDirAsHomeHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "llm-anthropic"; - version = "0.20"; + version = "0.23"; pyproject = true; src = fetchFromGitHub { owner = "simonw"; repo = "llm-anthropic"; - tag = version; - hash = "sha256-tZCFbrsACJl1hC5tSbxJzBBLY8mdcCNjshZilSCAslM="; + tag = finalAttrs.version; + hash = "sha256-ZO9hoDv3YLl8ZCcd5UEDdD5VNPa83N639z1ZxJaFt7Y="; }; build-system = [ @@ -30,6 +31,7 @@ buildPythonPackage rec { dependencies = [ anthropic + json-schema-to-pydantic llm ]; @@ -40,6 +42,15 @@ buildPythonPackage rec { writableTmpDirAsHomeHook ]; + disabledTests = [ + # Need to be run as a passthru test + "test_async_prompt" + "test_image_prompt" + "test_prompt" + "test_schema_prompt" + "test_thinking_prompt" + ]; + pythonImportsCheck = [ "llm_anthropic" ]; passthru.tests = llm.mkPluginTest llm-anthropic; @@ -47,8 +58,8 @@ buildPythonPackage rec { meta = { description = "LLM access to models by Anthropic, including the Claude series"; homepage = "https://github.com/simonw/llm-anthropic"; - changelog = "https://github.com/simonw/llm-anthropic/releases/tag/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/simonw/llm-anthropic/releases/tag/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ aos ]; }; -} +})