From 1db6f3b6b066248fe3e157d01941b0122208fa97 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Apr 2024 10:46:50 +0200 Subject: [PATCH] python312Packages.langsmith: 0.1.45 -> 0.1.48 Diff: https://github.com/langchain-ai/langsmith-sdk/compare/refs/tags/v0.1.45...v0.1.48 Changelog: https://github.com/langchain-ai/langsmith-sdk/releases/tag/v0.1.48 --- .../development/python-modules/langsmith/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index 35e9d068c11c..d77c61338475 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -3,8 +3,10 @@ stdenv, attr, buildPythonPackage, + fastapi, fetchFromGitHub, freezegun, + httpx, orjson, poetry-core, pydantic, @@ -13,11 +15,12 @@ pythonOlder, pythonRelaxDepsHook, requests, + uvicorn, }: buildPythonPackage rec { pname = "langsmith"; - version = "0.1.45"; + version = "0.1.48"; pyproject = true; disabled = pythonOlder "3.8"; @@ -26,7 +29,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langsmith-sdk"; rev = "refs/tags/v${version}"; - hash = "sha256-8A9wqhM8U5Q8o0uMyu+LQKhV+1Nsyg4opJjwylc6kkI="; + hash = "sha256-n24rlulncJHNyHFqszEbALGfnT7+tTGjLjwR7Fw1smI="; }; sourceRoot = "${src.name}/python"; @@ -45,9 +48,12 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + fastapi freezegun + httpx pytest-asyncio pytestCheckHook + uvicorn ] ++ lib.optionals stdenv.isLinux [ attr ]; @@ -73,6 +79,8 @@ buildPythonPackage rec { # due to circular import "tests/integration_tests/test_client.py" "tests/unit_tests/test_client.py" + # Tests require a Langsmith API key + "tests/evaluation/test_evaluation.py" ]; pythonImportsCheck = [ "langsmith" ];