From 7297398c31a964330d731279334769f342f4d7b0 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 4 Mar 2026 21:02:49 +0000 Subject: [PATCH 1/2] python3Packages.langsmith: 0.6.4 -> 0.7.12 --- .../python-modules/langsmith/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index c6d4eb68507d..8646c2282a6b 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, @@ -14,6 +13,7 @@ requests, requests-toolbelt, uuid-utils, + xxhash, zstandard, # tests @@ -23,6 +23,7 @@ multipart, opentelemetry-sdk, pytest-asyncio, + pytest-httpx, pytest-socket, pytest-vcr, pytestCheckHook, @@ -30,14 +31,14 @@ buildPythonPackage rec { pname = "langsmith"; - version = "0.6.4"; + version = "0.7.12"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langsmith-sdk"; tag = "v${version}"; - hash = "sha256-325A2kEx2UrykxVRzp6WQCPrg92Vy+6R1CfgnCLV2V8="; + hash = "sha256-5BVQYlp/RMFN1Ja75gz9iFneqkSuoDpqXilHbyEAPdA="; }; sourceRoot = "${src.name}/python"; @@ -53,6 +54,7 @@ buildPythonPackage rec { requests requests-toolbelt uuid-utils + xxhash zstandard ]; @@ -60,9 +62,10 @@ buildPythonPackage rec { anthropic attrs dataclasses-json + multipart opentelemetry-sdk pytest-asyncio - multipart + pytest-httpx pytest-socket pytest-vcr pytestCheckHook @@ -93,6 +96,8 @@ buildPythonPackage rec { # flaky time comparisons # https://github.com/langchain-ai/langsmith-sdk/issues/2245 "tests/unit_tests/test_uuid_v7.py" + # google-adk isn't packaged (and has an enormous number of dependencies) + "tests/unit_tests/wrappers/test_google_adk.py" ]; pythonImportsCheck = [ "langsmith" ]; From 585003bd8040173259f0779f7afcb6cea85f2229 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 8 Mar 2026 12:58:46 +0000 Subject: [PATCH 2/2] python3Packages.langsmith: use finalAttrs --- pkgs/development/python-modules/langsmith/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index 8646c2282a6b..81ce98a57948 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -29,7 +29,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "langsmith"; version = "0.7.12"; pyproject = true; @@ -37,11 +37,11 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "langchain-ai"; repo = "langsmith-sdk"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-5BVQYlp/RMFN1Ja75gz9iFneqkSuoDpqXilHbyEAPdA="; }; - sourceRoot = "${src.name}/python"; + sourceRoot = "${finalAttrs.src.name}/python"; pythonRelaxDeps = [ "orjson" ]; @@ -107,7 +107,7 @@ buildPythonPackage rec { meta = { description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform"; homepage = "https://github.com/langchain-ai/langsmith-sdk"; - changelog = "https://github.com/langchain-ai/langsmith-sdk/releases/tag/${src.tag}"; + changelog = "https://github.com/langchain-ai/langsmith-sdk/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium @@ -115,4 +115,4 @@ buildPythonPackage rec { ]; mainProgram = "langsmith"; }; -} +})