Fabian Affolter 2024-04-18 10:46:50 +02:00
parent 28bf5e76dd
commit 1db6f3b6b0

View File

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