python311Packages.langchain: remove extra-dependencies

Context: https://github.com/langchain-ai/langchain/pull/22581
This commit is contained in:
Gaetan Lepage
2024-06-11 16:23:42 +02:00
parent 7e0f252b93
commit 3b16b337a0
@@ -2,26 +2,15 @@
lib,
aiohttp,
async-timeout,
azure-core,
azure-cosmos,
azure-identity,
bash,
buildPythonPackage,
chardet,
clarifai,
cohere,
esprima,
fetchFromGitHub,
freezegun,
huggingface-hub,
langchain-core,
langchain-text-splitters,
langsmith,
lark,
manifest-ml,
nlpcloud,
numpy,
openai,
pandas,
poetry-core,
pydantic,
@@ -31,19 +20,13 @@
pytestCheckHook,
pythonOlder,
pyyaml,
qdrant-client,
requests-mock,
requests,
responses,
sentence-transformers,
sqlalchemy,
syrupy,
tenacity,
tiktoken,
toml,
torch,
transformers,
typer,
}:
buildPythonPackage rec {
@@ -79,46 +62,6 @@ buildPythonPackage rec {
tenacity
] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
passthru.optional-dependencies = {
llms = [
clarifai
cohere
openai
# openlm
nlpcloud
huggingface-hub
manifest-ml
torch
transformers
];
qdrant = [ qdrant-client ];
openai = [
openai
tiktoken
];
text_helpers = [ chardet ];
clarifai = [ clarifai ];
cohere = [ cohere ];
docarray = [
# docarray
];
embeddings = [ sentence-transformers ];
javascript = [ esprima ];
azure = [
azure-identity
azure-cosmos
openai
azure-core
# azure-ai-formrecognizer
# azure-ai-vision
# azure-cognitiveservices-speech
# azure-search-documents
# azure-ai-textanalytics
];
all = [ ];
cli = [ typer ];
};
nativeCheckInputs = [
freezegun
lark