mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-15 00:52:07 +03:00
python311Packages.langchain-core: add updateScript
This commit is contained in:
parent
bfb7a88267
commit
536e6566ff
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user