Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 74 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, fetchFromGitHub,
# build-system pdm-backend,
# dependencies langchain-core, langchain-openai,
# testing langchain-tests, pytestCheckHook, pytest-asyncio, syrupy,
# passthru gitUpdater,}:
buildPythonPackage rec { pname = "langchain-deepseek"; version = "0.1.4"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-deepseek==${version}"; hash = "sha256-lIlThVpyZF5osiCyYMO8kQUNtG5eUjXGZLdgRraj4Yc="; };
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 ];
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_deepseek" ];
passthru.updateScript = gitUpdater { rev-prefix = "langchain-deepseek=="; };
meta = { changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}"; 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 ]; };}