From 4ad7b9c85f6004b8e745fd1802c7d94e5f418022 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 11 Nov 2023 14:53:52 +0900 Subject: [PATCH 1/3] python311Packages.langsmith: 0.0.57 -> 0.0.63 Diff: https://github.com/langchain-ai/langsmith-sdk/compare/refs/tags/v0.0.57...v0.0.63 Changelog: https://github.com/langchain-ai/langsmith-sdk/releases/tag/v0.0.63 --- pkgs/development/python-modules/langsmith/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index a2961ccf6400..3b81c6128887 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "langsmith"; - version = "0.0.57"; + version = "0.0.63"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langsmith-sdk"; rev = "refs/tags/v${version}"; - hash = "sha256-3P0vB7wz/K3skejyPwtFZN17mFrOw9TGLHTJHvu4m7M="; + hash = "sha256-KE+WMnuWAq1stZuuwZkOPOKQ2lZNKtxzNbZMRoOdmz0="; }; sourceRoot = "${src.name}/python"; @@ -60,6 +60,8 @@ buildPythonPackage rec { "langsmith" ]; + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform"; homepage = "https://github.com/langchain-ai/langsmith-sdk"; From 743bbdec1f050425c5cf68d516e9c420073fac0e Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 11 Nov 2023 14:55:25 +0900 Subject: [PATCH 2/3] python311Packages.langchain: 0.0.325 -> 0.0.334 Diff: https://github.com/hwchase17/langchain/compare/refs/tags/v0.0.325...v0.0.334 Changelog: https://github.com/hwchase17/langchain/releases/tag/v0.0.334 --- pkgs/development/python-modules/langchain/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index e14f008d0cb7..cc3e6297f366 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -78,6 +78,7 @@ , pytest-socket , pytest-vcr , pytestCheckHook +, requests-mock , responses , syrupy , toml @@ -85,7 +86,7 @@ buildPythonPackage rec { pname = "langchain"; - version = "0.0.325"; + version = "0.0.334"; pyproject = true; disabled = pythonOlder "3.8"; @@ -94,7 +95,7 @@ buildPythonPackage rec { owner = "hwchase17"; repo = "langchain"; rev = "refs/tags/v${version}"; - hash = "sha256-/bk4RafDDL4nozyFOiikyU4auBSftej21m5/FnEtDog="; + hash = "sha256-mXPqc8wF9DhEtITm8h5R9kHBcMJ7AEK4kL5Z7V2p8NE="; }; sourceRoot = "${src.name}/libs/langchain"; @@ -260,6 +261,7 @@ buildPythonPackage rec { pytest-socket pytest-vcr pytestCheckHook + requests-mock responses syrupy toml From 3dff06ecf6abdcdbdb419fb24502cf98637e0dc8 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 11 Nov 2023 15:32:30 +0900 Subject: [PATCH 3/3] python311Packages.langchain: clean up test dependencies and fix build on darwin --- .../development/python-modules/langchain/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index cc3e6297f366..c2fabc40c03a 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -42,7 +42,6 @@ , librosa , lxml , manifest-ml -, markdownify , neo4j , networkx , nlpcloud @@ -76,7 +75,6 @@ , pytest-asyncio , pytest-mock , pytest-socket -, pytest-vcr , pytestCheckHook , requests-mock , responses @@ -254,22 +252,22 @@ buildPythonPackage rec { nativeCheckInputs = [ freezegun - markdownify + lark pandas pytest-asyncio pytest-mock pytest-socket - pytest-vcr pytestCheckHook requests-mock responses syrupy toml - ] ++ passthru.optional-dependencies.all; + ]; pytestFlagsArray = [ # integration_tests have many network, db access and require `OPENAI_API_KEY`, etc. "tests/unit_tests" + "--only-core" ]; disabledTests = [ @@ -281,6 +279,10 @@ buildPythonPackage rec { "test_socket_disabled" ]; + pythonImportsCheck = [ + "langchain" + ]; + meta = with lib; { description = "Building applications with LLMs through composability"; homepage = "https://github.com/hwchase17/langchain";