python3Packages.langsmith: 0.8.18 -> 0.12.4

This commit is contained in:
Sarah Clark
2026-09-14 21:32:35 +00:00
parent 3d6dc4b7a0
commit 3413a96f0e

View File

@@ -8,11 +8,15 @@
hatchling,
# dependencies
httpx,
anyio,
distro,
httpx2,
orjson,
pydantic,
requests,
requests-toolbelt,
sniffio,
typing-extensions,
uuid-utils,
websockets,
xxhash,
@@ -20,7 +24,7 @@
# tests
anthropic,
attrs,
cachetools,
dataclasses-json,
multipart,
opentelemetry-sdk,
@@ -29,18 +33,19 @@
pytest-socket,
pytest-vcr,
pytestCheckHook,
rich,
}:
buildPythonPackage (finalAttrs: {
pname = "langsmith";
version = "0.8.18";
version = "0.12.4";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langsmith-sdk";
tag = "v${finalAttrs.version}";
hash = "sha256-YQ49pg0+RepwlEHtu8GDUpfnXQF3yFiz6ZeRcnHXSWU=";
hash = "sha256-e5+lttn90eBL4xkvxN9oH3aPp1wRBfy5Q0pS8LDCiq8=";
};
sourceRoot = "${finalAttrs.src.name}/python";
@@ -50,11 +55,15 @@ buildPythonPackage (finalAttrs: {
build-system = [ hatchling ];
dependencies = [
httpx
anyio
distro
httpx2
orjson
pydantic
requests
requests-toolbelt
sniffio
typing-extensions
uuid-utils
websockets
xxhash
@@ -63,7 +72,7 @@ buildPythonPackage (finalAttrs: {
nativeCheckInputs = [
anthropic
attrs
cachetools
dataclasses-json
multipart
opentelemetry-sdk
@@ -72,6 +81,7 @@ buildPythonPackage (finalAttrs: {
pytest-socket
pytest-vcr
pytestCheckHook
rich
];
# evaluation and external tests require OpenAPI key
@@ -106,6 +116,38 @@ buildPythonPackage (finalAttrs: {
# strands-agents isn't packaged
"tests/unit_tests/wrappers/test_strands_agents.py"
# require network access to external test servers
"tests/unit_tests/test_async_client.py::test_arequest_with_retries_retries_on_502"
"tests/unit_tests/test_async_client.py::test_async_create_feedback_retries_on_not_found"
"tests/unit_tests/test_async_client.py::test_create_feedback_retries_on_not_found"
"tests/unit_tests/sandbox/test_async_client.py::TestAsyncConnectionErrors"
"tests/unit_tests/sandbox/test_async_client.py::TestAsyncSandboxOperations"
"tests/unit_tests/sandbox/test_async_client.py::TestAsyncSnapshotTags"
"tests/unit_tests/sandbox/test_async_client.py::TestGenerateDownloadURL"
"tests/unit_tests/sandbox/test_async_client.py::TestService"
"tests/unit_tests/sandbox/test_async_sandbox.py::TestAsyncSandboxContextManager"
"tests/unit_tests/sandbox/test_async_sandbox.py::TestAsyncSandboxRead"
"tests/unit_tests/sandbox/test_async_sandbox.py::TestAsyncSandboxRun"
"tests/unit_tests/sandbox/test_async_sandbox.py::TestAsyncSandboxStatusFields"
"tests/unit_tests/sandbox/test_async_sandbox.py::TestAsyncSandboxWrite"
"tests/unit_tests/sandbox/test_client.py::TestConnectionErrors"
"tests/unit_tests/sandbox/test_client.py::TestGenerateDownloadURL"
"tests/unit_tests/sandbox/test_client.py::TestRegistries"
"tests/unit_tests/sandbox/test_client.py::TestSandboxOperations"
"tests/unit_tests/sandbox/test_client.py::TestService"
"tests/unit_tests/sandbox/test_client.py::TestSnapshotOperations"
"tests/unit_tests/sandbox/test_client.py::TestStartStopOperations"
"tests/unit_tests/sandbox/test_proxy_config.py::test_create_sandbox_expands_mount_config"
"tests/unit_tests/sandbox/test_proxy_config.py::test_create_sandbox_forwards_composed_proxy_config"
"tests/unit_tests/sandbox/test_proxy_config.py::test_create_sandbox_preserves_mount_config_and_proxy_config_separately"
"tests/unit_tests/sandbox/test_sandbox.py::TestSandboxContextManager"
"tests/unit_tests/sandbox/test_sandbox.py::TestSandboxRead"
"tests/unit_tests/sandbox/test_sandbox.py::TestSandboxRun"
"tests/unit_tests/sandbox/test_sandbox.py::TestSandboxStatusFields"
"tests/unit_tests/sandbox/test_sandbox.py::TestSandboxWrite"
"tests/unit_tests/sandbox/test_transport.py::TestAsyncRetryTransport"
"tests/unit_tests/sandbox/test_transport.py::TestRetryTransport"
];
pythonImportsCheck = [ "langsmith" ];