Loading pkgs/development/python-modules/langchain/default.nix +4 −11 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ tenacity, # tests blockbuster, freezegun, httpx, lark, Loading @@ -41,7 +42,7 @@ buildPythonPackage rec { pname = "langchain"; version = "0.3.21"; version = "0.3.24"; pyproject = true; src = fetchFromGitHub { Loading @@ -53,11 +54,6 @@ buildPythonPackage rec { sourceRoot = "${src.name}/libs/langchain"; patches = [ # blockbuster isn't supported in nixpkgs ./rm-blockbuster.patch ]; build-system = [ pdm-backend ]; buildInputs = [ bash ]; Loading @@ -70,10 +66,6 @@ buildPythonPackage rec { "tenacity" ]; pythonRemoveDeps = [ "blockbuster" ]; dependencies = [ aiohttp langchain-core Loading @@ -92,6 +84,7 @@ buildPythonPackage rec { }; nativeCheckInputs = [ blockbuster freezegun httpx lark Loading Loading @@ -151,7 +144,7 @@ buildPythonPackage rec { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex" "^langchain==([0-9.]+)$" "langchain==([0-9.]+)" ]; }; Loading pkgs/development/python-modules/langchain/rm-blockbuster.patchdeleted 100644 → 0 +0 −68 Original line number Diff line number Diff line diff --git a/tests/unit_tests/conftest.py b/tests/unit_tests/conftest.py index fed8dbec5..6144ad7b8 100644 --- a/tests/unit_tests/conftest.py +++ b/tests/unit_tests/conftest.py @@ -5,36 +5,36 @@ from importlib import util from typing import Dict, Sequence import pytest -from blockbuster import blockbuster_ctx +# from blockbuster import blockbuster_ctx from pytest import Config, Function, Parser -@pytest.fixture(autouse=True) -def blockbuster() -> Iterator[None]: - with blockbuster_ctx("langchain") as bb: - bb.functions["io.TextIOWrapper.read"].can_block_in( - "langchain/__init__.py", "<module>" - ) - - for func in ["os.stat", "os.path.abspath"]: - ( - bb.functions[func] - .can_block_in("langchain_core/runnables/base.py", "__repr__") - .can_block_in( - "langchain_core/beta/runnables/context.py", "aconfig_with_context" - ) - ) - - for func in ["os.stat", "io.TextIOWrapper.read"]: - bb.functions[func].can_block_in( - "langsmith/client.py", "_default_retry_config" - ) - - for bb_function in bb.functions.values(): - bb_function.can_block_in( - "freezegun/api.py", "_get_cached_module_attributes" - ) - yield +# @pytest.fixture(autouse=True) +# def blockbuster() -> Iterator[None]: +# with blockbuster_ctx("langchain") as bb: +# bb.functions["io.TextIOWrapper.read"].can_block_in( +# "langchain/__init__.py", "<module>" +# ) + +# for func in ["os.stat", "os.path.abspath"]: +# ( +# bb.functions[func] +# .can_block_in("langchain_core/runnables/base.py", "__repr__") +# .can_block_in( +# "langchain_core/beta/runnables/context.py", "aconfig_with_context" +# ) +# ) + +# for func in ["os.stat", "io.TextIOWrapper.read"]: +# bb.functions[func].can_block_in( +# "langsmith/client.py", "_default_retry_config" +# ) + +# for bb_function in bb.functions.values(): +# bb_function.can_block_in( +# "freezegun/api.py", "_get_cached_module_attributes" +# ) +# yield def pytest_addoption(parser: Parser) -> None: Loading
pkgs/development/python-modules/langchain/default.nix +4 −11 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ tenacity, # tests blockbuster, freezegun, httpx, lark, Loading @@ -41,7 +42,7 @@ buildPythonPackage rec { pname = "langchain"; version = "0.3.21"; version = "0.3.24"; pyproject = true; src = fetchFromGitHub { Loading @@ -53,11 +54,6 @@ buildPythonPackage rec { sourceRoot = "${src.name}/libs/langchain"; patches = [ # blockbuster isn't supported in nixpkgs ./rm-blockbuster.patch ]; build-system = [ pdm-backend ]; buildInputs = [ bash ]; Loading @@ -70,10 +66,6 @@ buildPythonPackage rec { "tenacity" ]; pythonRemoveDeps = [ "blockbuster" ]; dependencies = [ aiohttp langchain-core Loading @@ -92,6 +84,7 @@ buildPythonPackage rec { }; nativeCheckInputs = [ blockbuster freezegun httpx lark Loading Loading @@ -151,7 +144,7 @@ buildPythonPackage rec { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex" "^langchain==([0-9.]+)$" "langchain==([0-9.]+)" ]; }; Loading
pkgs/development/python-modules/langchain/rm-blockbuster.patchdeleted 100644 → 0 +0 −68 Original line number Diff line number Diff line diff --git a/tests/unit_tests/conftest.py b/tests/unit_tests/conftest.py index fed8dbec5..6144ad7b8 100644 --- a/tests/unit_tests/conftest.py +++ b/tests/unit_tests/conftest.py @@ -5,36 +5,36 @@ from importlib import util from typing import Dict, Sequence import pytest -from blockbuster import blockbuster_ctx +# from blockbuster import blockbuster_ctx from pytest import Config, Function, Parser -@pytest.fixture(autouse=True) -def blockbuster() -> Iterator[None]: - with blockbuster_ctx("langchain") as bb: - bb.functions["io.TextIOWrapper.read"].can_block_in( - "langchain/__init__.py", "<module>" - ) - - for func in ["os.stat", "os.path.abspath"]: - ( - bb.functions[func] - .can_block_in("langchain_core/runnables/base.py", "__repr__") - .can_block_in( - "langchain_core/beta/runnables/context.py", "aconfig_with_context" - ) - ) - - for func in ["os.stat", "io.TextIOWrapper.read"]: - bb.functions[func].can_block_in( - "langsmith/client.py", "_default_retry_config" - ) - - for bb_function in bb.functions.values(): - bb_function.can_block_in( - "freezegun/api.py", "_get_cached_module_attributes" - ) - yield +# @pytest.fixture(autouse=True) +# def blockbuster() -> Iterator[None]: +# with blockbuster_ctx("langchain") as bb: +# bb.functions["io.TextIOWrapper.read"].can_block_in( +# "langchain/__init__.py", "<module>" +# ) + +# for func in ["os.stat", "os.path.abspath"]: +# ( +# bb.functions[func] +# .can_block_in("langchain_core/runnables/base.py", "__repr__") +# .can_block_in( +# "langchain_core/beta/runnables/context.py", "aconfig_with_context" +# ) +# ) + +# for func in ["os.stat", "io.TextIOWrapper.read"]: +# bb.functions[func].can_block_in( +# "langsmith/client.py", "_default_retry_config" +# ) + +# for bb_function in bb.functions.values(): +# bb_function.can_block_in( +# "freezegun/api.py", "_get_cached_module_attributes" +# ) +# yield def pytest_addoption(parser: Parser) -> None: