c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
64 lines
1.1 KiB
Nix
64 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, poetry-core
|
|
, pythonOlder
|
|
, aiohttp
|
|
, dataclasses-json
|
|
, langchain-core
|
|
, langsmith
|
|
, numpy
|
|
, pyyaml
|
|
, requests
|
|
, sqlalchemy
|
|
, tenacity
|
|
, typer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "langchain-community";
|
|
version = "0.0.24";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "langchain_community";
|
|
inherit version;
|
|
hash = "sha256-/WCfbJYsykt7dfIVnx+/dLFP3UUBHuK+U+ldtOZ4g38=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
dataclasses-json
|
|
langchain-core
|
|
langsmith
|
|
numpy
|
|
pyyaml
|
|
requests
|
|
sqlalchemy
|
|
tenacity
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
cli = [
|
|
typer
|
|
];
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|