Merge pull request #245047 from natsukium/langchain/update

python310Packages.langchain: 0.0.229 -> 0.0.240; python310Packages.langsmith: init at 0.0.14
This commit is contained in:
Mario Rodas
2023-07-23 16:39:12 -05:00
committed by GitHub
3 changed files with 62 additions and 4 deletions
@@ -62,7 +62,7 @@
, chardet
, requests-toolbelt
, neo4j
, langchainplus-sdk
, langsmith
# test dependencies
, pytest-vcr
, pytest-asyncio
@@ -80,7 +80,7 @@
buildPythonPackage rec {
pname = "langchain";
version = "0.0.229";
version = "0.0.240";
format = "pyproject";
disabled = pythonOlder "3.8";
@@ -89,9 +89,11 @@ buildPythonPackage rec {
owner = "hwchase17";
repo = "langchain";
rev = "refs/tags/v${version}";
hash = "sha256-9hPF+0bEcFGH2oop3e513kBp6UeUEBlPXD+2pZ4dCi0=";
hash = "sha256-7UwAdOzEgu3K/Gfq8D/GHNGxD6KhSx0xGMxtmpdnYxQ=";
};
sourceRoot = "source/libs/langchain";
postPatch = ''
substituteInPlace langchain/utilities/bash.py \
--replace '"env", ["-i", "bash", ' '"${lib.getExe bash}", ['
@@ -227,7 +229,7 @@ buildPythonPackage rec {
# azure-ai-formrecognizer
# azure-ai-vision
# azure-cognitiveservices-speech
langchainplus-sdk
langsmith
];
};
@@ -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 ];
};
}
+2
View File
@@ -5686,6 +5686,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 { };