Unverified Commit 55363cc5 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

python3Packages.langchain-deepseek: init at 0.1.3 (#403132)

parents 7d6b3dd1 66b010bd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ declare -ar packages=(
    langchain-chroma
    langchain-community
    langchain-core
    langchain-deepseek
    langchain-fireworks
    langchain-groq
    langchain-huggingface
+78 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  pdm-backend,
  poetry-core,

  # dependencies
  langchain-core,
  langchain-openai,

  # testing
  langchain-tests,
  pytestCheckHook,
  pytest-asyncio,
  syrupy,

  # passthru
  nix-update-script,
}:

buildPythonPackage rec {
  pname = "langchain-deepseek";
  version = "0.1.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain-deepseek==${version}";
    hash = "sha256-nkL8QO1H29sA6g61Hgt7QrRAfwD3t+0m5JEHyPx8B7Y=";
  };

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

  build-system = [
    pdm-backend
  ];

  pythonRelaxDeps = [
    # Each component release requests the exact latest core.
    # That prevents us from updating individual components.
    "langchain-core"
  ];

  dependencies = [
    langchain-core
    langchain-openai
  ];

  nativeCheckInputs = [
    langchain-tests
    pytestCheckHook
    pytest-asyncio
    syrupy
  ];

  pytestFlagsArray = [ "tests/unit_tests" ];

  pythonImportsCheck = [ "langchain_deepseek" ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "langchain-deepseek==([0-9.]+)"
    ];
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-deepseek==${version}";
    description = "Integration package connecting DeepSeek and LangChain";
    homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/deepseek";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sarahec ];
  };
}
+2 −2
Original line number Diff line number Diff line
@@ -42,14 +42,14 @@

buildPythonPackage rec {
  pname = "langchain";
  version = "0.3.24";
  version = "0.3.25";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain";
    tag = "langchain==${version}";
    hash = "sha256-Up/pH2TxLPiPO49oIa2ZlNeH3TyN9sZSlNsqOIRmlxc=";
    hash = "sha256-AzH1rZFqEH8sovZZfJykvsEmCedEZWigQFHWHl6/PdE=";
  };

  sourceRoot = "${src.name}/libs/langchain";
+2 −0
Original line number Diff line number Diff line
@@ -7532,6 +7532,8 @@ self: super: with self; {
  langchain-core = callPackage ../development/python-modules/langchain-core { };
  langchain-deepseek = callPackage ../development/python-modules/langchain-deepseek { };
  langchain-fireworks = callPackage ../development/python-modules/langchain-fireworks { };
  langchain-groq = callPackage ../development/python-modules/langchain-groq { };