python311Packages.langchain-core: add updateScript

This commit is contained in:
natsukium
2024-05-24 11:58:12 +09:00
parent bfb7a88267
commit 536e6566ff
4 changed files with 26 additions and 0 deletions
@@ -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";
@@ -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";
@@ -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";
@@ -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";