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