python3Packages.{langchain,langgraph}-* fix build errors introduced by mass update (#353002)

authored by

OTABI Tomoya and committed by
GitHub
b33f7605 13f90852

+137 -49
+6 -3
pkgs/development/python-modules/langchain-azure-dynamic-sessions/default.nix
··· 27 27 28 28 buildPythonPackage rec { 29 29 pname = "langchain-azure-dynamic-sessions"; 30 - version = "0.3.6"; 30 + version = "0.2.0"; 31 31 pyproject = true; 32 32 33 33 src = fetchFromGitHub { 34 34 owner = "langchain-ai"; 35 35 repo = "langchain"; 36 - rev = "refs/tags/langchain-core==${version}"; 36 + rev = "refs/tags/langchain-azure-dynamic-sessions==${version}"; 37 37 hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; 38 38 }; 39 39 ··· 74 74 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/azure-dynamic-sessions"; 75 75 changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-azure-dynamic-sessions==${version}"; 76 76 license = lib.licenses.mit; 77 - maintainers = with lib.maintainers; [ natsukium ]; 77 + maintainers = with lib.maintainers; [ 78 + natsukium 79 + sarahec 80 + ]; 78 81 }; 79 82 }
+3 -3
pkgs/development/python-modules/langchain-chroma/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "langchain-chroma"; 15 - version = "0.3.6"; 15 + version = "0.1.4"; 16 16 pyproject = true; 17 17 18 18 src = fetchFromGitHub { 19 19 owner = "langchain-ai"; 20 20 repo = "langchain"; 21 - rev = "refs/tags/langchain-core==${version}"; 22 - hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; 21 + rev = "refs/tags/langchain-chroma==${version}"; 22 + hash = "sha256-pU7H8OYXa+JjdkSO36xESPI6r3xA+9cFXxeJnfpYuHc="; 23 23 }; 24 24 25 25 sourceRoot = "${src.name}/libs/partners/chroma";
+6 -3
pkgs/development/python-modules/langchain-core/default.nix
··· 34 34 35 35 buildPythonPackage rec { 36 36 pname = "langchain-core"; 37 - version = "0.3.12"; 37 + version = "0.3.15"; 38 38 pyproject = true; 39 39 40 40 src = fetchFromGitHub { 41 41 owner = "langchain-ai"; 42 42 repo = "langchain"; 43 43 rev = "refs/tags/langchain-core==${version}"; 44 - hash = "sha256-WWzEIP/JirA4btYVy4+U7PSg6S8VnkZqxPLgLriWbTY="; 44 + hash = "sha256-lSXAqjjnihuucTZOSwQJk8gtrtFbUOTHN4J587iLKy0="; 45 45 }; 46 46 47 47 sourceRoot = "${src.name}/libs/core"; ··· 143 143 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/core"; 144 144 changelog = "https://github.com/langchain-ai/langchain/releases/tag/v${version}"; 145 145 license = lib.licenses.mit; 146 - maintainers = with lib.maintainers; [ natsukium ]; 146 + maintainers = with lib.maintainers; [ 147 + natsukium 148 + sarahec 149 + ]; 147 150 }; 148 151 }
+6 -3
pkgs/development/python-modules/langchain-huggingface/default.nix
··· 30 30 31 31 buildPythonPackage rec { 32 32 pname = "langchain-huggingface"; 33 - version = "0.3.6"; 33 + version = "0.1.2"; 34 34 pyproject = true; 35 35 36 36 src = fetchFromGitHub { 37 37 owner = "langchain-ai"; 38 38 repo = "langchain"; 39 - rev = "refs/tags/langchain-core==${version}"; 39 + rev = "refs/tags/langchain-huggingface==${version}"; 40 40 hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; 41 41 }; 42 42 ··· 80 80 description = "An integration package connecting Huggingface related classes and LangChain"; 81 81 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/huggingface"; 82 82 license = lib.licenses.mit; 83 - maintainers = with lib.maintainers; [ natsukium ]; 83 + maintainers = with lib.maintainers; [ 84 + natsukium 85 + sarahec 86 + ]; 84 87 }; 85 88 }
+7 -4
pkgs/development/python-modules/langchain-mongodb/default.nix
··· 22 22 23 23 buildPythonPackage rec { 24 24 pname = "langchain-mongodb"; 25 - version = "0.3.6"; 25 + version = "0.2.0"; 26 26 pyproject = true; 27 27 28 28 src = fetchFromGitHub { 29 29 owner = "langchain-ai"; 30 30 repo = "langchain"; 31 - rev = "refs/tags/langchain-core==${version}"; 32 - hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; 31 + rev = "refs/tags/langchain-mongodb==${version}"; 32 + hash = "sha256-Jd9toXkS9dGtSIrJQ/5W+swV1z2BJOJKBtkyGzj3oSc="; 33 33 }; 34 34 35 35 sourceRoot = "${src.name}/libs/partners/mongodb"; ··· 65 65 description = "Integration package connecting MongoDB and LangChain"; 66 66 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/mongodb"; 67 67 license = lib.licenses.mit; 68 - maintainers = with lib.maintainers; [ natsukium ]; 68 + maintainers = with lib.maintainers; [ 69 + natsukium 70 + sarahec 71 + ]; 69 72 }; 70 73 }
+3 -3
pkgs/development/python-modules/langchain-ollama/default.nix
··· 21 21 22 22 buildPythonPackage rec { 23 23 pname = "langchain-ollama"; 24 - version = "0.3.6"; 24 + version = "0.2.0"; 25 25 pyproject = true; 26 26 27 27 src = fetchFromGitHub { 28 28 owner = "langchain-ai"; 29 29 repo = "langchain"; 30 - rev = "refs/tags/langchain-core==${version}"; 31 - hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; 30 + rev = "refs/tags/langchain-ollama==${version}"; 31 + hash = "sha256-NtlJqIevdaoOO4oDqKsL4OFbw8tHb3FjV9LrTytOGKE="; 32 32 }; 33 33 34 34 sourceRoot = "${src.name}/libs/partners/ollama";
+7 -4
pkgs/development/python-modules/langchain-openai/default.nix
··· 28 28 29 29 buildPythonPackage rec { 30 30 pname = "langchain-openai"; 31 - version = "0.3.6"; 31 + version = "0.2.5"; 32 32 pyproject = true; 33 33 34 34 src = fetchFromGitHub { 35 35 owner = "langchain-ai"; 36 36 repo = "langchain"; 37 - rev = "refs/tags/langchain-core==${version}"; 38 - hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; 37 + rev = "refs/tags/langchain-openai==${version}"; 38 + hash = "sha256-Gm7MAOuG+kYQ3TRTRdQXJ+HcoUz+iL9j+pTXz+zAySg="; 39 39 }; 40 40 41 41 sourceRoot = "${src.name}/libs/partners/openai"; ··· 96 96 description = "Integration package connecting OpenAI and LangChain"; 97 97 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/openai"; 98 98 license = lib.licenses.mit; 99 - maintainers = with lib.maintainers; [ natsukium ]; 99 + maintainers = with lib.maintainers; [ 100 + natsukium 101 + sarahec 102 + ]; 100 103 }; 101 104 }
+5 -3
pkgs/development/python-modules/langchain-standard-tests/default.nix
··· 21 21 22 22 buildPythonPackage rec { 23 23 pname = "langchain-standard-tests"; 24 - version = "0.1.1"; 25 24 pyproject = true; 26 25 27 26 # this is an internal library, so there are no tags 28 27 # sync source with langchain-core for easy updates 29 - inherit (langchain-core) src; 28 + inherit (langchain-core) src version; 30 29 sourceRoot = "${src.name}/libs/standard-tests"; 31 30 32 31 build-system = [ poetry-core ]; ··· 51 50 description = "Build context-aware reasoning applications"; 52 51 homepage = "https://github.com/langchain-ai/langchain"; 53 52 license = lib.licenses.mit; 54 - maintainers = with lib.maintainers; [ natsukium ]; 53 + maintainers = with lib.maintainers; [ 54 + natsukium 55 + sarahec 56 + ]; 55 57 }; 56 58 }
+8 -7
pkgs/development/python-modules/langchain-text-splitters/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "langchain-text-splitters"; 20 - version = "0.3.6"; 20 + version = "0.3.2"; 21 21 pyproject = true; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "langchain-ai"; 25 25 repo = "langchain"; 26 - rev = "refs/tags/langchain-core==${version}"; 27 - hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; 26 + rev = "refs/tags/langchain-text-splitters==${version}"; 27 + hash = "sha256-TaK8lnPxKUqwvKLtQIfzg2l8McQ1fd0g9vocHM0+kjY="; 28 28 }; 29 29 30 30 sourceRoot = "${src.name}/libs/text-splitters"; 31 31 32 32 build-system = [ poetry-core ]; 33 33 34 - dependencies = [ 35 - langchain-core 36 - ]; 34 + dependencies = [ langchain-core ]; 37 35 38 36 pythonImportsCheck = [ "langchain_text_splitters" ]; 39 37 ··· 54 52 description = "LangChain utilities for splitting into chunks a wide variety of text documents"; 55 53 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters"; 56 54 license = lib.licenses.mit; 57 - maintainers = with lib.maintainers; [ fab ]; 55 + maintainers = with lib.maintainers; [ 56 + fab 57 + sarahec 58 + ]; 58 59 }; 59 60 }
+4 -2
pkgs/development/python-modules/langchain/default.nix
··· 12 12 13 13 # dependencies 14 14 aiohttp, 15 + httpx-sse, 15 16 langchain-core, 16 17 langchain-text-splitters, 17 18 langsmith, ··· 42 43 43 44 buildPythonPackage rec { 44 45 pname = "langchain"; 45 - version = "0.3.4"; 46 + version = "0.3.7"; 46 47 pyproject = true; 47 48 48 49 src = fetchFromGitHub { 49 50 owner = "langchain-ai"; 50 51 repo = "langchain"; 51 52 rev = "refs/tags/langchain==${version}"; 52 - hash = "sha256-MRpXR4nQDobzofhzkU5Y2OiEsi+VdjCcF/vcxcG/144="; 53 + hash = "sha256-TaK8lnPxKUqwvKLtQIfzg2l8McQ1fd0g9vocHM0+kjY="; 53 54 }; 54 55 55 56 sourceRoot = "${src.name}/libs/langchain"; ··· 62 63 63 64 dependencies = [ 64 65 aiohttp 66 + httpx-sse 65 67 langchain-core 66 68 langchain-text-splitters 67 69 langsmith
+62
pkgs/development/python-modules/langgraph-checkpoint-duckdb/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + langgraph-checkpoint, 6 + aiosqlite, 7 + duckdb, 8 + pytest-asyncio, 9 + pytestCheckHook, 10 + langgraph-sdk, 11 + poetry-core, 12 + pythonOlder, 13 + }: 14 + 15 + buildPythonPackage rec { 16 + pname = "langgraph-checkpoint-duckdb"; 17 + version = "2.0.1"; 18 + pyproject = true; 19 + 20 + disabled = pythonOlder "3.9"; 21 + 22 + src = fetchFromGitHub { 23 + owner = "langchain-ai"; 24 + repo = "langgraph"; 25 + rev = "refs/tags/checkpointduckdb==${version}"; 26 + hash = "sha256-wSrlFBfTcTgyE46uwv9GCyxRT1xVafgWyP2g87KUTAU="; 27 + }; 28 + 29 + sourceRoot = "${src.name}/libs/checkpoint-duckdb"; 30 + 31 + build-system = [ poetry-core ]; 32 + 33 + dependencies = [ 34 + aiosqlite 35 + duckdb 36 + langgraph-checkpoint 37 + ]; 38 + 39 + pythonImportsCheck = [ "langgraph.checkpoint.duckdb" ]; 40 + 41 + nativeCheckInputs = [ 42 + pytest-asyncio 43 + pytestCheckHook 44 + ]; 45 + 46 + disabledTests = [ "test_basic_store_ops" ]; # depends on networking 47 + 48 + passthru = { 49 + updateScript = langgraph-sdk.updateScript; 50 + }; 51 + 52 + meta = { 53 + changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpointduckdb==${version}"; 54 + description = "Library with a DuckDB implementation of LangGraph checkpoint saver"; 55 + homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint-duckdb"; 56 + license = lib.licenses.mit; 57 + maintainers = with lib.maintainers; [ 58 + drupol 59 + sarahec 60 + ]; 61 + }; 62 + }
+2 -2
pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix
··· 18 18 19 19 buildPythonPackage rec { 20 20 pname = "langgraph-checkpoint-postgres"; 21 - version = "2.0.1"; 21 + version = "2.0.2"; 22 22 pyproject = true; 23 23 24 24 disabled = pythonOlder "3.10"; ··· 27 27 owner = "langchain-ai"; 28 28 repo = "langgraph"; 29 29 rev = "refs/tags/checkpointpostgres==${version}"; 30 - hash = "sha256-5gKgCd0hl2iPLBfh94n8kMojECknhd0r+W4gt3m4g+M="; 30 + hash = "sha256-E3gdHWUYelR/xI3Cv3T2uVwsyt+tOkw9MjX7I2RAuiQ="; 31 31 }; 32 32 33 33 postgresqlTestSetupPost = ''
+2 -2
pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix
··· 13 13 14 14 buildPythonPackage rec { 15 15 pname = "langgraph-checkpoint-sqlite"; 16 - version = "2.0.0"; 16 + version = "2.0.1"; 17 17 pyproject = true; 18 18 19 19 disabled = pythonOlder "3.9"; ··· 22 22 owner = "langchain-ai"; 23 23 repo = "langgraph"; 24 24 rev = "refs/tags/checkpointsqlite==${version}"; 25 - hash = "sha256-aG7kHdlOkrjfYcdDWwCum0mQvWNMlF2CcEDlkzbv4Zw="; 25 + hash = "sha256-dh+cjcOp6rGFntz82VNfVyetcrQBdBFdXk5xFb0aR5c="; 26 26 }; 27 27 28 28 sourceRoot = "${src.name}/libs/checkpoint-sqlite";
+2 -2
pkgs/development/python-modules/langgraph-checkpoint/default.nix
··· 15 15 16 16 buildPythonPackage rec { 17 17 pname = "langgraph-checkpoint"; 18 - version = "2.0.1"; 18 + version = "2.0.2"; 19 19 pyproject = true; 20 20 21 21 disabled = pythonOlder "3.9"; ··· 24 24 owner = "langchain-ai"; 25 25 repo = "langgraph"; 26 26 rev = "refs/tags/checkpoint==${version}"; 27 - hash = "sha256-BDuc6PpziOFIsPpDets7OM2Z+VJ6ekxKpkAuoavDdmI="; 27 + hash = "sha256-Mjo6NJ6vYb2E7nk0D/2M7jzr39xRvRRhUZE4tP247to="; 28 28 }; 29 29 30 30 sourceRoot = "${src.name}/libs/checkpoint";
+3 -3
pkgs/development/python-modules/langgraph-cli/default.nix
··· 12 12 13 13 buildPythonPackage rec { 14 14 pname = "langgraph-cli"; 15 - version = "0.2.28"; 15 + version = "0.1.52"; 16 16 pyproject = true; 17 17 18 18 disabled = pythonOlder "3.10"; ··· 20 20 src = fetchFromGitHub { 21 21 owner = "langchain-ai"; 22 22 repo = "langgraph"; 23 - rev = "refs/tags/${version}"; 24 - hash = "sha256-RbV4G5YPAUjS20B1sQsmFGBje1pbxgCu81pCESFbJLs="; 23 + rev = "refs/tags/cli==${version}"; 24 + hash = "sha256-zTBeDJB1Xu/rWsvEC/L4BRzxyh04lPYV7HQNHoJcskk="; 25 25 }; 26 26 27 27 sourceRoot = "${src.name}/libs/cli";
+3 -3
pkgs/development/python-modules/langgraph-sdk/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "langgraph-sdk"; 20 - version = "0.2.28"; 20 + version = "0.1.35"; 21 21 pyproject = true; 22 22 23 23 src = fetchFromGitHub { 24 24 owner = "langchain-ai"; 25 25 repo = "langgraph"; 26 - rev = "refs/tags/${version}"; 27 - hash = "sha256-RbV4G5YPAUjS20B1sQsmFGBje1pbxgCu81pCESFbJLs="; 26 + rev = "refs/tags/sdk==${version}"; 27 + hash = "sha256-HWUGRoe5S0HPfOEbqUnFYLVrHe3SJtk3U8cy1JON050="; 28 28 }; 29 29 30 30 sourceRoot = "${src.name}/libs/sdk-py";
+6 -2
pkgs/development/python-modules/langgraph/default.nix
··· 17 17 dataclasses-json, 18 18 grandalf, 19 19 httpx, 20 + langgraph-checkpoint-duckdb, 20 21 langgraph-checkpoint-postgres, 21 22 langgraph-checkpoint-sqlite, 22 23 langsmith, ··· 34 35 35 36 buildPythonPackage rec { 36 37 pname = "langgraph"; 37 - version = "0.2.39"; 38 + version = "0.2.43"; 38 39 pyproject = true; 39 40 40 41 src = fetchFromGitHub { 41 42 owner = "langchain-ai"; 42 43 repo = "langgraph"; 43 44 rev = "refs/tags/${version}"; 44 - hash = "sha256-VZRGlE3MSOzur1TWC6swQjf/o5M62LsYncx2g8dtS+o="; 45 + hash = "sha256-8xTjWBq6GSl6X2IId3roS3ZNM/h76EGPitS08YQ4e7Y="; 45 46 }; 46 47 47 48 postgresqlTestSetupPost = '' ··· 70 71 dataclasses-json 71 72 grandalf 72 73 httpx 74 + langgraph-checkpoint-duckdb 73 75 langgraph-checkpoint-postgres 74 76 langgraph-checkpoint-sqlite 75 77 langsmith ··· 85 87 postgresql 86 88 postgresqlTestHook 87 89 ]; 90 + 91 + pytestFlagsArray = [ "tests/unit_tests" ]; 88 92 89 93 disabledTests = [ 90 94 # test is flaky due to pydantic error on the exception
+2
pkgs/top-level/python-packages.nix
··· 6943 6943 6944 6944 langgraph-checkpoint-postgres = callPackage ../development/python-modules/langgraph-checkpoint-postgres { }; 6945 6945 6946 + langgraph-checkpoint-duckdb = callPackage ../development/python-modules/langgraph-checkpoint-duckdb { }; 6947 + 6946 6948 langgraph-checkpoint-sqlite = callPackage ../development/python-modules/langgraph-checkpoint-sqlite { }; 6947 6949 6948 6950 langgraph-cli = callPackage ../development/python-modules/langgraph-cli { };