mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
python3Packages.{langchain,langgraph}: updates (#540836)
This commit is contained in:
@@ -8,11 +8,13 @@
|
||||
|
||||
# dependencies
|
||||
boto3,
|
||||
langchain,
|
||||
langchain-core,
|
||||
numpy,
|
||||
pydantic,
|
||||
|
||||
# tests
|
||||
langchain,
|
||||
|
||||
# optional-dependencies
|
||||
anthropic,
|
||||
langchain-anthropic,
|
||||
@@ -51,7 +53,6 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
dependencies = [
|
||||
boto3
|
||||
langchain
|
||||
langchain-core
|
||||
numpy
|
||||
pydantic
|
||||
@@ -70,6 +71,7 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
nativeCheckInputs = [
|
||||
anthropic
|
||||
langchain
|
||||
langchain-tests
|
||||
pytest-asyncio
|
||||
pytest-cov-stub
|
||||
|
||||
@@ -99,6 +99,8 @@ buildPythonPackage (finalAttrs: {
|
||||
disabledTests = [
|
||||
# Network access (web.example.com)
|
||||
"test_socket_disabled"
|
||||
# Fails due to JSON formatting differences
|
||||
"test_configurable"
|
||||
];
|
||||
|
||||
# Bulk updater selects wrong tag
|
||||
|
||||
@@ -5,11 +5,10 @@
|
||||
pythonAtLeast,
|
||||
|
||||
# build-system
|
||||
pdm-backend,
|
||||
hatchling,
|
||||
|
||||
# dependencies
|
||||
aiohttp,
|
||||
dataclasses-json,
|
||||
httpx-sse,
|
||||
langchain-classic,
|
||||
langchain-core,
|
||||
@@ -23,11 +22,9 @@
|
||||
|
||||
# tests
|
||||
blockbuster,
|
||||
duckdb,
|
||||
duckdb-engine,
|
||||
httpx,
|
||||
langchain-tests,
|
||||
lark,
|
||||
mypy-extensions,
|
||||
pandas,
|
||||
pytest-asyncio,
|
||||
pytest-mock,
|
||||
@@ -43,19 +40,19 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langchain-community";
|
||||
version = "0.4.1";
|
||||
version = "0.4.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain-community";
|
||||
tag = "libs/community/v${version}";
|
||||
hash = "sha256-N92YDmej2shQQlktr0veFOKyGFWemFj0hdJIYu1rYSc=";
|
||||
hash = "sha256-I9xULsg+tlXM3Brh6Xa5xvFENx8zn4FRZ1/evNEh8UY=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/libs/community";
|
||||
|
||||
build-system = [ pdm-backend ];
|
||||
build-system = [ hatchling ];
|
||||
|
||||
# Only needed for mixed python 3.12/3.13 builds
|
||||
pythonRelaxDeps = [
|
||||
@@ -64,7 +61,6 @@ buildPythonPackage rec {
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
dataclasses-json
|
||||
httpx-sse
|
||||
langchain-classic
|
||||
langchain-core
|
||||
@@ -81,11 +77,9 @@ buildPythonPackage rec {
|
||||
|
||||
nativeCheckInputs = [
|
||||
blockbuster
|
||||
duckdb
|
||||
duckdb-engine
|
||||
httpx
|
||||
langchain-tests
|
||||
lark
|
||||
mypy-extensions
|
||||
pandas
|
||||
pytest-asyncio
|
||||
pytest-mock
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langchain-core";
|
||||
version = "1.4.8";
|
||||
version = "1.4.9";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
@@ -45,7 +45,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain";
|
||||
tag = "langchain-core==${finalAttrs.version}";
|
||||
hash = "sha256-fJKr1NlpCujGoVxxqjaEXGOVZO5NH9+71dWHyMuQ2jw=";
|
||||
hash = "sha256-yOsft14mHlIaDQj2bhBAUISZCVXsyEtyNC9B7+5F0Oo=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/libs/core";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
fireworks-ai,
|
||||
langchain-core,
|
||||
openai,
|
||||
pydantic,
|
||||
requests,
|
||||
|
||||
# tests
|
||||
langchain-tests,
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langchain-fireworks";
|
||||
version = "1.4.3";
|
||||
version = "1.4.4";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
@@ -33,7 +33,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain";
|
||||
tag = "langchain-fireworks==${finalAttrs.version}";
|
||||
hash = "sha256-Z8KwSMq4kVCUVD9Cs8PU6ZRcC9ZG52dbeQrpYInt9L0=";
|
||||
hash = "sha256-O63UohmChFeeQZH7G1iYDwNdvJapVEnHlkGHdGxIDjE=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/libs/partners/fireworks";
|
||||
@@ -45,7 +45,7 @@ buildPythonPackage (finalAttrs: {
|
||||
fireworks-ai
|
||||
langchain-core
|
||||
openai
|
||||
pydantic
|
||||
requests
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langchain-openai";
|
||||
version = "1.3.2";
|
||||
version = "1.3.5";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
@@ -41,13 +41,16 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain";
|
||||
tag = "langchain-openai==${finalAttrs.version}";
|
||||
hash = "sha256-VmGbfciQlKBYgyUhFLUVzZaYSpEcK2pRokvsWrFpxaM=";
|
||||
hash = "sha256-kfzfMldzWdhR785rfNPwI2T0u9ep66diQWYJeTpsdCM=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/libs/partners/openai";
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
# The python3Packages.openai update has to go through staging, so be open to newer versions
|
||||
pythonRelaxDeps = [ "openai" ];
|
||||
|
||||
dependencies = [
|
||||
langchain-core
|
||||
openai
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langchain";
|
||||
version = "1.3.11";
|
||||
version = "1.3.13";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
@@ -54,7 +54,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain";
|
||||
tag = "langchain==${finalAttrs.version}";
|
||||
hash = "sha256-ARLnl+HNsaFW7glyT3CEsNWvp9quvVkCpQvMLxgS2eI=";
|
||||
hash = "sha256-KOid+tspI5cIcMl9SyACTClamY/Bs7xOi9n/zikbHiw=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/libs/langchain_v1";
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langgraph-cli";
|
||||
version = "0.4.30";
|
||||
version = "0.4.31";
|
||||
pyproject = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
@@ -35,7 +35,7 @@ buildPythonPackage (finalAttrs: {
|
||||
owner = "langchain-ai";
|
||||
repo = "langgraph";
|
||||
tag = "cli==${finalAttrs.version}";
|
||||
hash = "sha256-wemTtMT8UbpEsGzf0fMnXdhJv0oTrG/TqEu6HhFN6nc=";
|
||||
hash = "sha256-9q+/IKQcNT04WVSGU+ByoLxAPiUSbxPBhqI5uxpobHk=";
|
||||
};
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/libs/cli";
|
||||
|
||||
Reference in New Issue
Block a user