From 7c813c9ddef6a8d88305026d92e9292a68dabeba Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Tue, 1 Apr 2025 10:52:22 -0700 Subject: [PATCH] python312Packages.langsmith: 0.3.10 -> 0.3.22 --- pkgs/development/python-modules/langsmith/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index b6671d00ab68..111067b979f5 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -22,6 +22,7 @@ freezegun, instructor, pytest-asyncio, + pytest-vcr, pytestCheckHook, uvicorn, attr, @@ -29,14 +30,14 @@ buildPythonPackage rec { pname = "langsmith"; - version = "0.3.10"; + version = "0.3.22"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langsmith-sdk"; tag = "v${version}"; - hash = "sha256-kiKauRYqKEJZaKjL2YgOCgMmuw3UgSQx9+xHOdylCAQ="; + hash = "sha256-6KHiRwz3lR0+w1DHn1HgYK93MP9hvYFgoUvXtEogskA="; }; sourceRoot = "${src.name}/python"; @@ -61,6 +62,7 @@ buildPythonPackage rec { freezegun instructor pytest-asyncio + pytest-vcr pytestCheckHook uvicorn ] ++ lib.optionals stdenv.hostPlatform.isLinux [ attr ]; @@ -86,12 +88,14 @@ buildPythonPackage rec { # due to circular import "tests/integration_tests/test_client.py" "tests/integration_tests/test_prompts.py" - "tests/unit_tests/evaluation/test_runner.py" "tests/unit_tests/test_client.py" "tests/unit_tests/evaluation/test_runner.py" + "tests/unit_tests/evaluation/test_runner.py" # Tests require a Langsmith API key "tests/evaluation/test_evaluation.py" "tests/external/test_instructor_evals.py" + # Marked as flaky in source + "tests/unit_tests/test_run_helpers.py" ]; pythonImportsCheck = [ "langsmith" ];