mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
python3Packages.{langchain,langchain-core,langchain-community,langchain-openai} update to latest 20241023 (#350758)
This commit is contained in:
commit
4e9d8be92d
@ -45,6 +45,11 @@ buildPythonPackage rec {
|
|||||||
numpy
|
numpy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
# Boto @ 1.35 has outstripped the version requirement
|
||||||
|
"boto3"
|
||||||
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
langchain-standard-tests
|
langchain-standard-tests
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
@ -38,14 +38,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain-community";
|
pname = "langchain-community";
|
||||||
version = "0.3.1";
|
version = "0.3.3";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "langchain-ai";
|
owner = "langchain-ai";
|
||||||
repo = "langchain";
|
repo = "langchain";
|
||||||
rev = "refs/tags/langchain-community==${version}";
|
rev = "refs/tags/langchain-community==${version}";
|
||||||
hash = "sha256-h7+89w8PkSpFxGGQKFC6FuB6Q2B27EYgLk0aiPqwp4s=";
|
hash = "sha256-xWr4v+4gL8LAegqerQc1SdAynPk5X8qLlPF211+OBvY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/libs/community";
|
sourceRoot = "${src.name}/libs/community";
|
||||||
|
@ -34,14 +34,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain-core";
|
pname = "langchain-core";
|
||||||
version = "0.3.7";
|
version = "0.3.12";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "langchain-ai";
|
owner = "langchain-ai";
|
||||||
repo = "langchain";
|
repo = "langchain";
|
||||||
rev = "refs/tags/langchain-core==${version}";
|
rev = "refs/tags/langchain-core==${version}";
|
||||||
hash = "sha256-s2tqBJpWJNy0SnHWt0RQowmRbBD+7zqFEeDuFrUzr2U=";
|
hash = "sha256-WWzEIP/JirA4btYVy4+U7PSg6S8VnkZqxPLgLriWbTY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/libs/core";
|
sourceRoot = "${src.name}/libs/core";
|
||||||
@ -119,6 +119,15 @@ buildPythonPackage rec {
|
|||||||
# TypeError: exceptions must be derived from Warning, not <class 'NoneType'>
|
# TypeError: exceptions must be derived from Warning, not <class 'NoneType'>
|
||||||
"test_chat_prompt_template_variable_names"
|
"test_chat_prompt_template_variable_names"
|
||||||
"test_create_model_v2"
|
"test_create_model_v2"
|
||||||
|
|
||||||
|
# Comparison with magic strings
|
||||||
|
"test_prompt_with_chat_model"
|
||||||
|
"test_prompt_with_chat_model_async"
|
||||||
|
"test_prompt_with_llm"
|
||||||
|
"test_prompt_with_llm_parser"
|
||||||
|
"test_prompt_with_llm_and_async_lambda"
|
||||||
|
"test_prompt_with_chat_model_and_parser"
|
||||||
|
"test_combining_sequences"
|
||||||
]
|
]
|
||||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||||
# Langchain-core the following tests due to the test comparing execution time with magic values.
|
# Langchain-core the following tests due to the test comparing execution time with magic values.
|
||||||
|
@ -28,14 +28,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain-openai";
|
pname = "langchain-openai";
|
||||||
version = "0.2.1";
|
version = "0.2.3";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "langchain-ai";
|
owner = "langchain-ai";
|
||||||
repo = "langchain";
|
repo = "langchain";
|
||||||
rev = "refs/tags/langchain-openai==${version}";
|
rev = "refs/tags/langchain-openai==${version}";
|
||||||
hash = "sha256-M1gyw0Nmh+aLU9scbuqmK2kPyfwtaFaCfue+T8PLguQ=";
|
hash = "sha256-ENQOKvp9XJTTC34UoNO4LLvcBwfFRcbOAvX/qtzln6k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/libs/partners/openai";
|
sourceRoot = "${src.name}/libs/partners/openai";
|
||||||
|
@ -42,14 +42,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain";
|
pname = "langchain";
|
||||||
version = "0.3.1";
|
version = "0.3.4";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "langchain-ai";
|
owner = "langchain-ai";
|
||||||
repo = "langchain";
|
repo = "langchain";
|
||||||
rev = "refs/tags/langchain==${version}";
|
rev = "refs/tags/langchain==${version}";
|
||||||
hash = "sha256-Zg+9ZwzTDKCyfz4T/tVIGfRUUmkE939hocxSWpFRngQ=";
|
hash = "sha256-MRpXR4nQDobzofhzkU5Y2OiEsi+VdjCcF/vcxcG/144=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/libs/langchain";
|
sourceRoot = "${src.name}/libs/langchain";
|
||||||
|
Loading…
Reference in New Issue
Block a user