Unverified Commit 536e6566 authored by natsukium's avatar natsukium
Browse files

python311Packages.langchain-core: add updateScript

parent bfb7a882
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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";
+14 −0
Original line number Diff line number Diff line
@@ -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";
+4 −0
Original line number Diff line number Diff line
@@ -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";
+4 −0
Original line number Diff line number Diff line
@@ -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";