Unverified Commit 90f0db1b authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.langchain*: fix bad bulk update, add `skipBulkUpdate=true` (#436925)

parents cf7d3772 7ac946c2
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -60,9 +60,13 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "langchain_anthropic" ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "langchain-anthropic==";
    };
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langchain-anthropic/releases/tag/${src.tag}";
+6 −2
Original line number Diff line number Diff line
@@ -69,9 +69,13 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "langchain_aws" ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "langchain-aws==";
    };
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langchain-aws/releases/tag/${src.tag}";
+9 −5
Original line number Diff line number Diff line
@@ -30,14 +30,14 @@

buildPythonPackage rec {
  pname = "langchain-azure-dynamic-sessions";
  version = "0.3.72";
  version = "0.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain-core==${version}";
    hash = "sha256-Q2uGMiODUtwkPdOyuSqp8vqjlLjiXk75QjXp7rr20tc=";
    tag = "langchain-azure-dynamic-sessions==${version}";
    hash = "sha256-tgvoOSr4tpi+tFBan+kw8FZUfUJHcQXv9e1nyeGP0so=";
  };

  sourceRoot = "${src.name}/libs/partners/azure-dynamic-sessions";
@@ -74,9 +74,13 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "langchain_azure_dynamic_sessions" ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "langchain-azure-dynamic-sessions==";
    };
  };

  meta = {
    description = "Integration package connecting Azure Container Apps dynamic sessions and LangChain";
+6 −2
Original line number Diff line number Diff line
@@ -64,9 +64,13 @@ buildPythonPackage rec {
    "test_chroma_update_document"
  ];

  passthru.updateScript = gitUpdater {
  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "langchain-chroma==";
    };
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}";
+2 −1
Original line number Diff line number Diff line
@@ -90,7 +90,8 @@ buildPythonPackage rec {
    tests.pytest = langchain-core.overridePythonAttrs (_: {
      doCheck = true;
    });

    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "langchain-core==";
    };
Loading