2024-04-04 23:16:31 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
poetry-core,
|
|
|
|
pythonOlder,
|
|
|
|
aiohttp,
|
|
|
|
dataclasses-json,
|
|
|
|
langchain-core,
|
|
|
|
langsmith,
|
|
|
|
numpy,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
sqlalchemy,
|
|
|
|
tenacity,
|
|
|
|
typer,
|
2024-01-14 16:37:10 +09:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "langchain-community";
|
2024-03-28 17:23:51 +01:00
|
|
|
version = "0.0.29";
|
2024-01-14 16:37:10 +09:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "langchain_community";
|
|
|
|
inherit version;
|
2024-03-28 17:23:51 +01:00
|
|
|
hash = "sha256-2IEH+vqf4sVzPaljDGjZ7lHNM7HIiklQ56LZo49+eqM=";
|
2024-01-14 16:37:10 +09:00
|
|
|
};
|
|
|
|
|
2024-04-04 23:16:31 +02:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2024-01-14 16:37:10 +09:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
dataclasses-json
|
|
|
|
langchain-core
|
|
|
|
langsmith
|
|
|
|
numpy
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
sqlalchemy
|
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.optional-dependencies = {
|
2024-04-04 23:16:31 +02:00
|
|
|
cli = [ typer ];
|
2024-01-14 16:37:10 +09:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "langchain_community" ];
|
|
|
|
|
|
|
|
# PyPI source does not have tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Community contributed LangChain integrations";
|
|
|
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ natsukium ];
|
|
|
|
};
|
|
|
|
}
|