depot/third_party/nixpkgs/pkgs/development/python-modules/langsmith/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

60 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, freezegun
, poetry-core
, pydantic
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "langsmith";
version = "0.0.35";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langsmith-sdk";
rev = "refs/tags/v${version}";
hash = "sha256-TR4vBsRImMLs7CTlBt1NHL+n65jXxBNbOY7wIlfFBfM=";
};
sourceRoot = "${src.name}/python";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pydantic
requests
];
nativeCheckInputs = [
freezegun
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# These tests require network access
"integration_tests"
];
pythonImportsCheck = [
"langsmith"
];
meta = with lib; {
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform";
homepage = "https://github.com/langchain-ai/langsmith-sdk";
changelog = "https://github.com/langchain-ai/langsmith-sdk/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}