From f3a2c3fce8685ea4a4c62ea969aa2ee192d3f9a7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Aug 2023 17:17:56 +0200 Subject: [PATCH 1/5] python311Packages.langsmith: add changelog to meta --- pkgs/development/python-modules/langsmith/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index 910ba98e8815..b2bd4b68ab2e 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -48,6 +48,7 @@ buildPythonPackage rec { meta = with lib; { description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform"; homepage = "https://github.com/langchain-ai/langchainplus-sdk"; + changelog = "https://github.com/langchain-ai/langsmith-sdk/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ natsukium ]; }; From 03e2460c9cfb2e39363030df05b08d019d8846b3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Aug 2023 17:18:55 +0200 Subject: [PATCH 2/5] python311Packages.langsmith: disable on unsupported Python releases --- pkgs/development/python-modules/langsmith/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index b2bd4b68ab2e..f54203f6ac09 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -3,9 +3,10 @@ , fetchFromGitHub , poetry-core , pydantic -, requests -, pytestCheckHook , pytest-asyncio +, pytestCheckHook +, pythonOlder +, requests }: buildPythonPackage rec { @@ -13,6 +14,8 @@ buildPythonPackage rec { version = "0.0.14"; format = "pyproject"; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchainplus-sdk"; From 2c5088a6d82c42a5426a2e462311c0ff4fa6994e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Aug 2023 17:21:13 +0200 Subject: [PATCH 3/5] python311Packages.langsmith: 0.0.14 -> 0.0.24 Diff: https://github.com/langchain-ai/langchainplus-sdk/compare/refs/tags/v0.0.14...v0.0.24 Changelog: https://github.com/langchain-ai/langsmith-sdk/releases/tag/v0.0.24 --- .../python-modules/langsmith/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index f54203f6ac09..7916c3e2cd3d 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "langsmith"; - version = "0.0.14"; + version = "0.0.24"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -19,10 +19,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchainplus-sdk"; - # there are no correct tags - # https://github.com/langchain-ai/langchainplus-sdk/issues/105 - rev = "092f67222e4beabca0f51ba03f1ee028f916da63"; - hash = "sha256-U8fs16Uq80EB7Ey5YuQhUKKI9DOXJWlabM5JdoDnWP0="; + rev = "refs/tags/v${version}"; + hash = "sha256-Uv6zzSWs+Fvb0ztwgkbkZcaNJOFpt8pWh88HZHsTris="; }; sourceRoot = "${src.name}/python"; @@ -42,11 +40,13 @@ buildPythonPackage rec { ]; disabledTests = [ - # these tests require network access + # These tests require network access "integration_tests" ]; - pythonImportsCheck = [ "langsmith" ]; + pythonImportsCheck = [ + "langsmith" + ]; meta = with lib; { description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform"; From b8ad165f38f0d829fb5c365377c04973c91a4bb2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Aug 2023 18:20:44 +0200 Subject: [PATCH 4/5] python310Packages.langchain: 0.0.263 -> 0.0.268 Diff: https://github.com/hwchase17/langchain/compare/refs/tags/v0.0.263...v0.0.268 Changelog: https://github.com/hwchase17/langchain/releases/tag/v0.0.268 --- pkgs/development/python-modules/langchain/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index ead028dd94de..df04d5b4659c 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -85,7 +85,7 @@ buildPythonPackage rec { pname = "langchain"; - version = "0.0.263"; + version = "0.0.268"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -94,7 +94,7 @@ buildPythonPackage rec { owner = "hwchase17"; repo = "langchain"; rev = "refs/tags/v${version}"; - hash = "sha256-/ReuUVSVO/JqfXFmGU/Yk5GAzmSuJvnr8zOTw3qLZvQ="; + hash = "sha256-x5cYtOY91JpW3vV7Q6JNNRoTFKGMu93TqBAhnhQ6pHE="; }; sourceRoot = "${src.name}/libs/langchain"; From d7c1a98e4b6593331f2f7f6941efd8a3dfbc2572 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 18 Aug 2023 18:26:50 +0200 Subject: [PATCH 5/5] python311Packages.langsmith: update repo details --- pkgs/development/python-modules/langsmith/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index 7916c3e2cd3d..eeae23611148 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "langchain-ai"; - repo = "langchainplus-sdk"; + repo = "langsmith-sdk"; rev = "refs/tags/v${version}"; hash = "sha256-Uv6zzSWs+Fvb0ztwgkbkZcaNJOFpt8pWh88HZHsTris="; }; @@ -50,7 +50,7 @@ buildPythonPackage rec { meta = with lib; { description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform"; - homepage = "https://github.com/langchain-ai/langchainplus-sdk"; + homepage = "https://github.com/langchain-ai/langsmith-sdk"; changelog = "https://github.com/langchain-ai/langsmith-sdk/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ natsukium ];