depot/third_party/nixpkgs/pkgs/development/python-modules/langchain-community/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

61 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.33";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "langchain_community";
inherit version;
hash = "sha256-u1bbwe8RygnyWEaOETaHga3akhnhRAc+MM2mlJbTQrI=";
};
build-system = [ poetry-core ];
dependencies = [
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 ];
};
}