python312Packages.langsmith: 0.3.10 -> 0.3.22 (#395244)

This commit is contained in:
Pol Dellaiera 2025-04-01 21:02:49 +02:00 committed by GitHub
commit 34ac514e3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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" ];