python310Packages.langsmith: init at 0.0.14

This commit is contained in:
natsukium 2023-07-23 21:43:19 +09:00
parent af8cd5ded7
commit 5103cdf48b
No known key found for this signature in database
GPG key ID: 9EA45A31DB994C53
2 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pydantic
, requests
, pytestCheckHook
, pytest-asyncio
}:
buildPythonPackage {
pname = "langsmith";
version = "0.0.14";
format = "pyproject";
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchainplus-sdk";
# there are no correct tags
# https://github.com/langchain-ai/langchainplus-sdk/issues/105
rev = "092f67222e4beabca0f51ba03f1ee028f916da63";
hash = "sha256-U8fs16Uq80EB7Ey5YuQhUKKI9DOXJWlabM5JdoDnWP0=";
};
sourceRoot = "source/python";
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pydantic
requests
];
nativeCheckInputs = [
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/langchainplus-sdk";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
};
}

View file

@ -5678,6 +5678,8 @@ self: super: with self; {
langdetect = callPackage ../development/python-modules/langdetect { };
langsmith = callPackage ../development/python-modules/langsmith { };
language-data = callPackage ../development/python-modules/language-data { };
language-tags = callPackage ../development/python-modules/language-tags { };