diff --git a/pkgs/development/python-modules/langchain-community/default.nix b/pkgs/development/python-modules/langchain-community/default.nix index cccbca601e32a..50b3992a9b610 100644 --- a/pkgs/development/python-modules/langchain-community/default.nix +++ b/pkgs/development/python-modules/langchain-community/default.nix @@ -53,6 +53,7 @@ buildPythonPackage rec { build-system = [ poetry-core ]; pythonRelaxDeps = [ + "numpy" "pydantic-settings" "tenacity" ]; @@ -107,6 +108,12 @@ buildPythonPackage rec { # See https://github.com/NixOS/nixpkgs/pull/326337 and https://github.com/wasmerio/wasmer-python/issues/778 "test_table_info" "test_sql_database_run" + # pydantic.errors.PydanticUserError: `SQLDatabaseToolkit` is not fully defined; you should define `BaseCache`, then call `SQLDatabaseToolkit.model_rebuild()`. + "test_create_sql_agent" + # pydantic.errors.PydanticUserError: `NatBotChain` is not fully defined; you should define `BaseCache`, then call `NatBotChain.model_rebuild()`. + "test_proper_inputs" + # pydantic.errors.PydanticUserError: `NatBotChain` is not fully defined; you should define `BaseCache`, then call `NatBotChain.model_rebuild()`. + "test_variable_key_naming" ]; meta = { diff --git a/pkgs/development/python-modules/langchain-mongodb/default.nix b/pkgs/development/python-modules/langchain-mongodb/default.nix index 0c1422bbeb593..78a3a9b06431f 100644 --- a/pkgs/development/python-modules/langchain-mongodb/default.nix +++ b/pkgs/development/python-modules/langchain-mongodb/default.nix @@ -36,6 +36,10 @@ buildPythonPackage rec { build-system = [ poetry-core ]; + pythonRelaxDeps = [ + "numpy" + ]; + dependencies = [ langchain-core numpy diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index ad7821606b96c..c9788da19f19d 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -59,7 +59,10 @@ buildPythonPackage rec { buildInputs = [ bash ]; - pythonRelaxDeps = [ "tenacity" ]; + pythonRelaxDeps = [ + "numpy" + "tenacity" + ]; dependencies = [ aiohttp @@ -118,6 +121,21 @@ buildPythonPackage rec { "test_aliases_hidden" ]; + disabledTestPaths = [ + # pydantic.errors.PydanticUserError: `ConversationSummaryMemory` is not fully defined; you should define `BaseCache`, then call `ConversationSummaryMemory.model_rebuild()`. + "tests/unit_tests/chains/test_conversation.py" + # pydantic.errors.PydanticUserError: `ConversationSummaryMemory` is not fully defined; you should define `BaseCache`, then call `ConversationSummaryMemory.model_rebuild()`. + "tests/unit_tests/chains/test_memory.py" + # pydantic.errors.PydanticUserError: `ConversationSummaryBufferMemory` is not fully defined; you should define `BaseCache`, then call `ConversationSummaryBufferMemory.model_rebuild()`. + "tests/unit_tests/chains/test_summary_buffer_memory.py" + "tests/unit_tests/output_parsers/test_fix.py" + "tests/unit_tests/chains/test_llm_checker.py" + # TypeError: Can't instantiate abstract class RunnableSerializable[RetryOutputParserRetryChainInput, str] without an implementation for abstract method 'invoke' + "tests/unit_tests/output_parsers/test_retry.py" + # pydantic.errors.PydanticUserError: `LLMSummarizationCheckerChain` is not fully defined; you should define `BaseCache`, then call `LLMSummarizationCheckerChain.model_rebuild()`. + "tests/unit_tests/chains/test_llm_summarization_checker.py" + ]; + pythonImportsCheck = [ "langchain" ]; passthru = {