diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index 01518fe12e37..1251efaa1e93 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -52,14 +52,17 @@ , duckduckgo-search , lark , jq -, protobuf , steamship , pdfminer-six , lxml +, chardet +, requests-toolbelt +, neo4j # test dependencies , pytest-vcr , pytest-asyncio , pytest-mock +, pytest-socket , pandas , toml , freezegun @@ -70,7 +73,7 @@ buildPythonPackage rec { pname = "langchain"; - version = "0.0.170"; + version = "0.0.179"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -79,7 +82,7 @@ buildPythonPackage rec { owner = "hwchase17"; repo = "langchain"; rev = "refs/tags/v${version}"; - hash = "sha256-0hV8X1c+vMJlynNud//hb164oTYmYlsmeSM4dKwC0G4="; + hash = "sha256-9MotnDsDXwdwVGuD3sO+FFWluPCHHXkQRH0B1zskLZg="; }; postPatch = '' @@ -129,9 +132,15 @@ buildPythonPackage rec { openai = [ openai ]; + text_helpers = [ + chardet + ]; cohere = [ cohere ]; + docarray = [ + # docarray + ]; embeddings = [ sentence-transformers ]; @@ -189,17 +198,22 @@ buildPythonPackage rec { # clickhouse-connect azure-cosmos # lancedb + # langkit lark pexpect # pyvespa # O365 jq # docarray - protobuf - # hnswlib steamship pdfminer-six lxml + requests-toolbelt + neo4j + # openlm + # azure-ai-formrecognizer + # azure-ai-vision + # azure-cognitiveservices-speech ]; }; @@ -207,6 +221,7 @@ buildPythonPackage rec { pytestCheckHook pytest-vcr pytest-mock + pytest-socket pytest-asyncio pandas toml @@ -223,6 +238,9 @@ buildPythonPackage rec { # these tests have db access "test_table_info" "test_sql_database_run" + + # these tests have network access + "test_socket_disabled" ]; meta = with lib; {