2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchFromGitHub,
|
2024-04-21 15:54:59 +00:00
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
aiohttp,
|
|
|
|
dataclasses-json,
|
2024-06-05 15:53:02 +00:00
|
|
|
duckdb-engine,
|
|
|
|
langchain,
|
2024-04-21 15:54:59 +00:00
|
|
|
langchain-core,
|
|
|
|
langsmith,
|
2024-06-05 15:53:02 +00:00
|
|
|
lark,
|
2024-04-21 15:54:59 +00:00
|
|
|
numpy,
|
2024-06-05 15:53:02 +00:00
|
|
|
pandas,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
2024-04-21 15:54:59 +00:00
|
|
|
pyyaml,
|
|
|
|
requests,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests-mock,
|
|
|
|
responses,
|
2024-04-21 15:54:59 +00:00
|
|
|
sqlalchemy,
|
2024-06-05 15:53:02 +00:00
|
|
|
syrupy,
|
2024-04-21 15:54:59 +00:00
|
|
|
tenacity,
|
2024-06-05 15:53:02 +00:00
|
|
|
toml,
|
2024-04-21 15:54:59 +00:00
|
|
|
typer,
|
2024-01-25 14:12:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "langchain-community";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.2.1";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "langchain-ai";
|
|
|
|
repo = "langchain";
|
|
|
|
rev = "langchain-community==${version}";
|
|
|
|
hash = "sha256-h8ZJiQYmyvzaRrEVNS7SamJTq4zY7J1IgYdQiVBFh4I=";
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
sourceRoot = "${src.name}/libs/community";
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-01-25 14:12:00 +00:00
|
|
|
aiohttp
|
|
|
|
dataclasses-json
|
|
|
|
langchain-core
|
2024-06-05 15:53:02 +00:00
|
|
|
langchain
|
2024-01-25 14:12:00 +00:00
|
|
|
langsmith
|
|
|
|
numpy
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
sqlalchemy
|
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2024-04-21 15:54:59 +00:00
|
|
|
cli = [ typer ];
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "langchain_community" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
duckdb-engine
|
|
|
|
lark
|
|
|
|
pandas
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
responses
|
|
|
|
syrupy
|
|
|
|
toml
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/unit_tests" ];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = langchain-core.updateScript;
|
|
|
|
};
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Community contributed LangChain integrations";
|
|
|
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/langchain-ai/langchain/releases/tag/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
};
|
|
|
|
}
|