From 298d649cdff8edda3f0cd2b92aa69870992ae1fb Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 11 Jun 2025 16:59:05 -0700 Subject: [PATCH] python3Packages.langchain*: standardize inputs structure --- .../python-modules/langchain-anthropic/default.nix | 4 +++- .../python-modules/langchain-aws/default.nix | 4 +++- .../langchain-azure-dynamic-sessions/default.nix | 4 +++- .../python-modules/langchain-chroma/default.nix | 14 +++++++++++--- .../python-modules/langchain-community/default.nix | 4 +++- .../python-modules/langchain-core/default.nix | 4 +++- .../python-modules/langchain-deepseek/default.nix | 4 +++- .../python-modules/langchain-fireworks/default.nix | 4 +++- .../python-modules/langchain-groq/default.nix | 4 +++- .../langchain-huggingface/default.nix | 4 +++- .../python-modules/langchain-mistralai/default.nix | 4 +++- .../python-modules/langchain-mongodb/default.nix | 4 +++- .../python-modules/langchain-ollama/default.nix | 4 +++- .../python-modules/langchain-openai/default.nix | 4 +++- .../langchain-perplexity/default.nix | 4 +++- .../python-modules/langchain-tests/default.nix | 4 +++- .../langchain-text-splitters/default.nix | 4 +++- .../python-modules/langchain-xai/default.nix | 4 +++- .../python-modules/langchain/default.nix | 4 +++- 19 files changed, 65 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/langchain-anthropic/default.nix b/pkgs/development/python-modules/langchain-anthropic/default.nix index 9ef47b4c2cda..71a54c49b7fd 100644 --- a/pkgs/development/python-modules/langchain-anthropic/default.nix +++ b/pkgs/development/python-modules/langchain-anthropic/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -16,6 +15,9 @@ langchain-tests, pytest-asyncio, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-aws/default.nix b/pkgs/development/python-modules/langchain-aws/default.nix index 16037db84255..a3cfa0812690 100644 --- a/pkgs/development/python-modules/langchain-aws/default.nix +++ b/pkgs/development/python-modules/langchain-aws/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system poetry-core, @@ -17,6 +16,9 @@ langchain-tests, pytest-asyncio, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-azure-dynamic-sessions/default.nix b/pkgs/development/python-modules/langchain-azure-dynamic-sessions/default.nix index 91afaad8e2ea..a10c57314756 100644 --- a/pkgs/development/python-modules/langchain-azure-dynamic-sessions/default.nix +++ b/pkgs/development/python-modules/langchain-azure-dynamic-sessions/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system poetry-core, @@ -24,6 +23,9 @@ responses, syrupy, toml, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-chroma/default.nix b/pkgs/development/python-modules/langchain-chroma/default.nix index 9f6130d266f7..7b0c8ed4ca24 100644 --- a/pkgs/development/python-modules/langchain-chroma/default.nix +++ b/pkgs/development/python-modules/langchain-chroma/default.nix @@ -2,14 +2,22 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, + + # build-system + pdm-backend, + + # dependencies chromadb, langchain-core, - langchain-tests, numpy, - pdm-backend, + + # tests + langchain-tests, pytestCheckHook, pytest-asyncio, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-community/default.nix b/pkgs/development/python-modules/langchain-community/default.nix index 59dae7c83b4e..001c32f03975 100644 --- a/pkgs/development/python-modules/langchain-community/default.nix +++ b/pkgs/development/python-modules/langchain-community/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -36,6 +35,9 @@ responses, syrupy, toml, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-core/default.nix b/pkgs/development/python-modules/langchain-core/default.nix index 97477b6d4240..86a1bb6e0782 100644 --- a/pkgs/development/python-modules/langchain-core/default.nix +++ b/pkgs/development/python-modules/langchain-core/default.nix @@ -3,7 +3,6 @@ stdenv, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -30,6 +29,9 @@ pytest-xdist, pytestCheckHook, syrupy, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-deepseek/default.nix b/pkgs/development/python-modules/langchain-deepseek/default.nix index dc6846137efa..97edc2cae949 100644 --- a/pkgs/development/python-modules/langchain-deepseek/default.nix +++ b/pkgs/development/python-modules/langchain-deepseek/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -17,6 +16,9 @@ pytestCheckHook, pytest-asyncio, syrupy, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-fireworks/default.nix b/pkgs/development/python-modules/langchain-fireworks/default.nix index d609ecbeb867..69f52f87cf9b 100644 --- a/pkgs/development/python-modules/langchain-fireworks/default.nix +++ b/pkgs/development/python-modules/langchain-fireworks/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -18,6 +17,9 @@ langchain-tests, pytest-asyncio, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-groq/default.nix b/pkgs/development/python-modules/langchain-groq/default.nix index 78a483175fc0..df1849e407f6 100644 --- a/pkgs/development/python-modules/langchain-groq/default.nix +++ b/pkgs/development/python-modules/langchain-groq/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -14,6 +13,9 @@ # tests langchain-tests, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-huggingface/default.nix b/pkgs/development/python-modules/langchain-huggingface/default.nix index 00dfede90789..af233767b4af 100644 --- a/pkgs/development/python-modules/langchain-huggingface/default.nix +++ b/pkgs/development/python-modules/langchain-huggingface/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -27,6 +26,9 @@ responses, syrupy, toml, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-mistralai/default.nix b/pkgs/development/python-modules/langchain-mistralai/default.nix index 8b08d8946a9c..3bd64f3fa7d8 100644 --- a/pkgs/development/python-modules/langchain-mistralai/default.nix +++ b/pkgs/development/python-modules/langchain-mistralai/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -18,6 +17,9 @@ langchain-tests, pytest-asyncio, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-mongodb/default.nix b/pkgs/development/python-modules/langchain-mongodb/default.nix index 2f25665933f8..e65e8721665f 100644 --- a/pkgs/development/python-modules/langchain-mongodb/default.nix +++ b/pkgs/development/python-modules/langchain-mongodb/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system poetry-core, @@ -19,6 +18,9 @@ pytestCheckHook, pytest-mock, syrupy, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-ollama/default.nix b/pkgs/development/python-modules/langchain-ollama/default.nix index ba2eaae264e8..705a53178a35 100644 --- a/pkgs/development/python-modules/langchain-ollama/default.nix +++ b/pkgs/development/python-modules/langchain-ollama/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -16,6 +15,9 @@ pytestCheckHook, pytest-asyncio, syrupy, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-openai/default.nix b/pkgs/development/python-modules/langchain-openai/default.nix index 71cf23d93686..f5b5e2efe49b 100644 --- a/pkgs/development/python-modules/langchain-openai/default.nix +++ b/pkgs/development/python-modules/langchain-openai/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -25,6 +24,9 @@ responses, syrupy, toml, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-perplexity/default.nix b/pkgs/development/python-modules/langchain-perplexity/default.nix index bfb74d467400..22d471f80f47 100644 --- a/pkgs/development/python-modules/langchain-perplexity/default.nix +++ b/pkgs/development/python-modules/langchain-perplexity/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -17,6 +16,9 @@ pytest-cov, pytest-mock, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-tests/default.nix b/pkgs/development/python-modules/langchain-tests/default.nix index 5ea71fa2b42f..495d77229666 100644 --- a/pkgs/development/python-modules/langchain-tests/default.nix +++ b/pkgs/development/python-modules/langchain-tests/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -24,6 +23,9 @@ pytest-asyncio, pytest-socket, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-text-splitters/default.nix b/pkgs/development/python-modules/langchain-text-splitters/default.nix index 458084831095..427e5564d9a5 100644 --- a/pkgs/development/python-modules/langchain-text-splitters/default.nix +++ b/pkgs/development/python-modules/langchain-text-splitters/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -14,6 +13,9 @@ httpx, pytest-asyncio, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain-xai/default.nix b/pkgs/development/python-modules/langchain-xai/default.nix index 62080d51ce0e..1b2fe6c07bd9 100644 --- a/pkgs/development/python-modules/langchain-xai/default.nix +++ b/pkgs/development/python-modules/langchain-xai/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - gitUpdater, # build-system pdm-backend, @@ -18,6 +17,9 @@ pytest-asyncio, pytest-mock, pytestCheckHook, + + # passthru + gitUpdater, }: buildPythonPackage rec { diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index 05006f9955b1..52e7e7a05ea0 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -3,7 +3,6 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, - gitUpdater, # build-system pdm-backend, @@ -38,6 +37,9 @@ responses, syrupy, toml, + + # passthru + gitUpdater, }: buildPythonPackage rec {