python311Packages.langchain-core: add updateScript

This commit is contained in:
natsukium 2024-05-24 10:29:56 +09:00
parent bfb7a88267
commit 536e6566ff
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
4 changed files with 26 additions and 0 deletions

View File

@ -52,6 +52,10 @@ buildPythonPackage rec {
# PyPI source does not have tests
doCheck = false;
passthru = {
updateScript = langchain-core.updateScript;
};
meta = with lib; {
description = "Community contributed LangChain integrations";
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";

View File

@ -13,6 +13,7 @@
pyyaml,
requests,
tenacity,
writeScript,
}:
buildPythonPackage rec {
@ -53,6 +54,19 @@ buildPythonPackage rec {
# PyPI source does not have tests
doCheck = false;
passthru = {
updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p nix-update
set -eu -o pipefail
nix-update --commit --version-regex 'langchain-core==(.*)' python3Packages.langchain-core
nix-update --commit --version-regex 'langchain-text-splitters==(.*)' python3Packages.langchain-text-splitters
nix-update --commit --version-regex 'langchain==(.*)' python3Packages.langchain
nix-update --commit --version-regex 'langchain-community==(.*)' python3Packages.langchain-community
'';
};
meta = with lib; {
description = "Building applications with LLMs through composability";
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/core";

View File

@ -33,6 +33,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "langchain_text_splitters" ];
passthru = {
inherit (langchain-core) updateScript;
};
meta = with lib; {
description = "Build context-aware reasoning applications";
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters";

View File

@ -166,6 +166,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "langchain" ];
passthru = {
updateScript = langchain-core.updateScript;
};
meta = with lib; {
description = "Building applications with LLMs through composability";
homepage = "https://github.com/langchain-ai/langchain";