Unverified Commit cf6dec0c authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

python3Packages.langchain*: fixes (#497680)

parents 0e6cdd5b dfe5acbf
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -22,19 +22,19 @@
  gitUpdater,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "langchain-anthropic";
  version = "1.3.3";
  version = "1.3.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain-anthropic==${version}";
    hash = "sha256-vQ2h92oP3gpSEu3HjQUF+1KWX9gm4Q7osTynu77UlvA=";
    tag = "langchain-anthropic==${finalAttrs.version}";
    hash = "sha256-8dGP26N2aheMTtI2wYMBVitlzrTsJZa5Zt5xVl+vqI4=";
  };

  sourceRoot = "${src.name}/libs/partners/anthropic";
  sourceRoot = "${finalAttrs.src.name}/libs/partners/anthropic";

  build-system = [ hatchling ];

@@ -72,7 +72,7 @@ buildPythonPackage rec {
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langchain-anthropic/releases/tag/${src.tag}";
    changelog = "https://github.com/langchain-ai/langchain-anthropic/releases/tag/${finalAttrs.src.tag}";
    description = "Build LangChain applications with Anthropic";
    homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/anthropic";
    license = lib.licenses.mit;
@@ -80,4 +80,4 @@ buildPythonPackage rec {
      lib.maintainers.sarahec
    ];
  };
}
})
+22 −12
Original line number Diff line number Diff line
@@ -12,6 +12,10 @@
  numpy,
  pydantic,

  # optional-dependencies
  langchain-anthropic,
  anthropic,

  # tests
  langchain-tests,
  pytest-asyncio,
@@ -22,16 +26,16 @@
  gitUpdater,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "langchain-aws";
  version = "1.2.5";
  version = "1.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain-aws";
    tag = "langchain-aws==${version}";
    hash = "sha256-mOK7rTDJPU4eS5jCzQ+yUDl2fkY3x4Mpl5bGEF3eLFc=";
    tag = "langchain-aws==${finalAttrs.version}";
    hash = "sha256-hKMTzN2NVMSMCVsFroFFUM0embz8KHbDnmunwOb9ofw=";
  };

  postPatch = ''
@@ -39,7 +43,7 @@ buildPythonPackage rec {
      --replace-fail "--snapshot-warn-unused" ""
  '';

  sourceRoot = "${src.name}/libs/aws";
  sourceRoot = "${finalAttrs.src.name}/libs/aws";

  build-system = [ hatchling ];

@@ -51,19 +55,25 @@ buildPythonPackage rec {
  ];

  pythonRelaxDeps = [
    # Boto @ 1.35 has outstripped the version requirement
    # Boto3 spec has outstripped the version requirement
    "boto3"
    # Each component release requests the exact latest core.
    # That prevents us from updating individual components.
    "langchain-core"
  ];

  optional-dependencies = {
    anthropic = [
      anthropic.optional-dependencies.bedrock
      langchain-anthropic
    ];
  };

  nativeCheckInputs = [
    anthropic
    langchain-tests
    pytest-asyncio
    pytest-cov-stub
    pytestCheckHook
  ];
  ]
  ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;

  enabledTestPaths = [ "tests/unit_tests" ];

@@ -83,7 +93,7 @@ buildPythonPackage rec {
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langchain-aws/releases/tag/${src.tag}";
    changelog = "https://github.com/langchain-ai/langchain-aws/releases/tag/${finalAttrs.src.tag}";
    description = "Build LangChain application on AWS";
    homepage = "https://github.com/langchain-ai/langchain-aws/";
    license = lib.licenses.mit;
@@ -92,4 +102,4 @@ buildPythonPackage rec {
      sarahec
    ];
  };
}
})
+6 −11
Original line number Diff line number Diff line
@@ -40,27 +40,22 @@
  gitUpdater,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "langchain-classic";
  version = "1.0.1";
  version = "1.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain-classic==${version}";
    hash = "sha256-4DlKOxt5OoPm38szMEJpw6gDl247eRsx4LZpofUKpUk=";
    tag = "langchain-classic==${finalAttrs.version}";
    hash = "sha256-NH2l2Htt5nAzzvwKUgQNwvQBLxZKhOLxnxthvK/Yh4I=";
  };

  sourceRoot = "${src.name}/libs/langchain";
  sourceRoot = "${finalAttrs.src.name}/libs/langchain";

  build-system = [ hatchling ];

  pythonRelaxDeps = [
    # Each component release requests the exact latest core.
    "langchain-core"
  ];

  dependencies = [
    langchain-core
    langchain-text-splitters
@@ -121,4 +116,4 @@ buildPythonPackage rec {
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sarahec ];
  };
}
})
+7 −8
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@
  blockbuster,
  freezegun,
  grandalf,
  httpx,
  langchain-core,
  langchain-tests,
  numpy,
@@ -35,19 +34,19 @@
  gitUpdater,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "langchain-core";
  version = "1.2.12";
  version = "1.2.17";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain-core==${version}";
    hash = "sha256-KSZhuABk5OpfJ1e1/h/Vr7RA5f9eSK7VBJKaJ5i6xv4=";
    tag = "langchain-core==${finalAttrs.version}";
    hash = "sha256-vuMVNRQSgj3o1KRBgspUglLECPF+YYWpH4/e5iE8ZYY=";
  };

  sourceRoot = "${src.name}/libs/core";
  sourceRoot = "${finalAttrs.src.name}/libs/core";

  build-system = [ hatchling ];

@@ -136,11 +135,11 @@ buildPythonPackage rec {
  meta = {
    description = "Building applications with LLMs through composability";
    homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/core";
    changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}";
    changelog = "https://github.com/langchain-ai/langchain/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      natsukium
      sarahec
    ];
  };
}
})
+7 −7
Original line number Diff line number Diff line
@@ -31,19 +31,19 @@
  gitUpdater,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "langchain-openai";
  version = "1.1.6";
  version = "1.1.10";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain-openai==${version}";
    hash = "sha256-Y+GV48rlqMfT4TrmoJFGqbHKfc8gxq61NhcUpwSsOwk=";
    tag = "langchain-openai==${finalAttrs.version}";
    hash = "sha256-k0JpzgF+2UaYUbtzOB+NFxq7Ge/eRbT8M4PgvDpRG2g=";
  };

  sourceRoot = "${src.name}/libs/partners/openai";
  sourceRoot = "${finalAttrs.src.name}/libs/partners/openai";

  build-system = [ hatchling ];

@@ -100,7 +100,7 @@ buildPythonPackage rec {
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}";
    changelog = "https://github.com/langchain-ai/langchain/releases/tag/${finalAttrs.src.tag}";
    description = "Integration package connecting OpenAI and LangChain";
    homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/openai";
    license = lib.licenses.mit;
@@ -109,4 +109,4 @@ buildPythonPackage rec {
      sarahec
    ];
  };
}
})
Loading