From 28bf5e76ddd20dd7f0fd6de84dcdd40a7bb7e631 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Apr 2024 09:18:31 +0200 Subject: [PATCH 1/4] python311Packages.langsmith: attr is linux-only --- pkgs/development/python-modules/langsmith/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index db00f39cfe89..35e9d068c11c 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, attr, buildPythonPackage, fetchFromGitHub, @@ -44,10 +45,11 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - attr freezegun pytest-asyncio pytestCheckHook + ] ++ lib.optionals stdenv.isLinux [ + attr ]; disabledTests = [ From 1db6f3b6b066248fe3e157d01941b0122208fa97 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Apr 2024 10:46:50 +0200 Subject: [PATCH 2/4] python312Packages.langsmith: 0.1.45 -> 0.1.48 Diff: https://github.com/langchain-ai/langsmith-sdk/compare/refs/tags/v0.1.45...v0.1.48 Changelog: https://github.com/langchain-ai/langsmith-sdk/releases/tag/v0.1.48 --- .../development/python-modules/langsmith/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langsmith/default.nix b/pkgs/development/python-modules/langsmith/default.nix index 35e9d068c11c..d77c61338475 100644 --- a/pkgs/development/python-modules/langsmith/default.nix +++ b/pkgs/development/python-modules/langsmith/default.nix @@ -3,8 +3,10 @@ stdenv, attr, buildPythonPackage, + fastapi, fetchFromGitHub, freezegun, + httpx, orjson, poetry-core, pydantic, @@ -13,11 +15,12 @@ pythonOlder, pythonRelaxDepsHook, requests, + uvicorn, }: buildPythonPackage rec { pname = "langsmith"; - version = "0.1.45"; + version = "0.1.48"; pyproject = true; disabled = pythonOlder "3.8"; @@ -26,7 +29,7 @@ buildPythonPackage rec { owner = "langchain-ai"; repo = "langsmith-sdk"; rev = "refs/tags/v${version}"; - hash = "sha256-8A9wqhM8U5Q8o0uMyu+LQKhV+1Nsyg4opJjwylc6kkI="; + hash = "sha256-n24rlulncJHNyHFqszEbALGfnT7+tTGjLjwR7Fw1smI="; }; sourceRoot = "${src.name}/python"; @@ -45,9 +48,12 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + fastapi freezegun + httpx pytest-asyncio pytestCheckHook + uvicorn ] ++ lib.optionals stdenv.isLinux [ attr ]; @@ -73,6 +79,8 @@ buildPythonPackage rec { # due to circular import "tests/integration_tests/test_client.py" "tests/unit_tests/test_client.py" + # Tests require a Langsmith API key + "tests/evaluation/test_evaluation.py" ]; pythonImportsCheck = [ "langsmith" ]; From 8510358f9b6305ff0007387d2a1ac7d6e9bd6f89 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Apr 2024 10:48:04 +0200 Subject: [PATCH 3/4] python312Packages.langchain-core: 0.1.42 -> 0.1.44 --- pkgs/development/python-modules/langchain-core/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langchain-core/default.nix b/pkgs/development/python-modules/langchain-core/default.nix index bab510205cff..32c0daba438e 100644 --- a/pkgs/development/python-modules/langchain-core/default.nix +++ b/pkgs/development/python-modules/langchain-core/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "langchain-core"; - version = "0.1.43"; + version = "0.1.44"; pyproject = true; disabled = pythonOlder "3.8"; @@ -25,7 +25,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "langchain_core"; inherit version; - hash = "sha256-SZEz+two7899JDBiNlIVGAgLsQ/Yv290Jt5KK78q67U="; + hash = "sha256-4xOXXZrikmNC5vKtdgM40x8YsSI+m4tNxAja7q3kaoM="; }; pythonRelaxDeps = [ From 0290ccccd5d0dc34783bba9eef82600684477998 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Apr 2024 10:48:21 +0200 Subject: [PATCH 4/4] python312Packages.langchain-community: 0.0.32 -> 0.0.33 --- .../python-modules/langchain-community/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langchain-community/default.nix b/pkgs/development/python-modules/langchain-community/default.nix index 6832aeffeaf4..472022947fed 100644 --- a/pkgs/development/python-modules/langchain-community/default.nix +++ b/pkgs/development/python-modules/langchain-community/default.nix @@ -18,7 +18,7 @@ buildPythonPackage rec { pname = "langchain-community"; - version = "0.0.32"; + version = "0.0.33"; pyproject = true; disabled = pythonOlder "3.8"; @@ -26,7 +26,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "langchain_community"; inherit version; - hash = "sha256-FRAhfWRsg4D1TphQNR9tKgsN1zxQG2Zsb0tAuqgWCyk="; + hash = "sha256-u1bbwe8RygnyWEaOETaHga3akhnhRAc+MM2mlJbTQrI="; }; build-system = [ poetry-core ];