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

This commit is contained in:
OTABI Tomoya
2025-05-06 14:23:31 +09:00
committed by GitHub
4 changed files with 83 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ declare -ar packages=(
langchain-chroma
langchain-community
langchain-core
langchain-deepseek
langchain-fireworks
langchain-groq
langchain-huggingface

View File

@@ -0,0 +1,78 @@
{
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 ];
};
}

View File

@@ -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";

View File

@@ -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 { };