From 760296fce49b4a22573edcfb407559deb5bc8e83 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Tue, 20 Jan 2026 18:42:02 -0800 Subject: [PATCH] python3Packages.langchain-tests: review pyproject and update derivation --- .../langchain-tests/default.nix | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/langchain-tests/default.nix b/pkgs/development/python-modules/langchain-tests/default.nix index 526ca96776a3..15356490fd7a 100644 --- a/pkgs/development/python-modules/langchain-tests/default.nix +++ b/pkgs/development/python-modules/langchain-tests/default.nix @@ -9,20 +9,18 @@ # dependencies httpx, langchain-core, - syrupy, - pytest-benchmark, - pytest-codspeed, + numpy, + pytest-asyncio, pytest-recording, + pytest-socket, + syrupy, vcrpy, # buildInputs - pytest, + pytestCheckHook, # tests - numpy, - pytest-asyncio_0, - pytest-socket, - pytestCheckHook, + pytest-benchmark, # passthru gitUpdater, @@ -44,35 +42,37 @@ buildPythonPackage rec { build-system = [ hatchling ]; + pythonRemoveDeps = [ + "pytest-benchmark" + "pytest-codspeed" + ]; + pythonRelaxDeps = [ - # Each component release requests the exact latest core. - # That prevents us from updating individual components. - "langchain-core" - "numpy" "syrupy" ]; dependencies = [ httpx langchain-core - pytest-asyncio_0 + numpy + pytest-asyncio pytest-benchmark - pytest-codspeed pytest-recording pytest-socket syrupy vcrpy ]; - buildInputs = [ pytest ]; - pythonImportsCheck = [ "langchain_tests" ]; nativeBuildInputs = [ - numpy pytestCheckHook ]; + disabledTestMarks = [ + "benchmark" + ]; + passthru = { # python updater script sets the wrong tag skipBulkUpdate = true;