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, ollama,
# testing langchain-tests, pytestCheckHook, pytest-asyncio, syrupy,
# passthru gitUpdater,}:
buildPythonPackage rec { pname = "langchain-ollama"; version = "0.3.6"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-ollama==${version}"; hash = "sha256-GQkyJaYvwRbjDR0Rfen7/X5hFhY2+WU74B6/9Ufhpo4="; };
sourceRoot = "${src.name}/libs/partners/ollama";
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 ollama ];
nativeCheckInputs = [ langchain-tests pytestCheckHook pytest-asyncio syrupy ];
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_ollama" ];
passthru.updateScript = gitUpdater { rev-prefix = "langchain-ollama=="; };
meta = { changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}"; description = "Integration package connecting Ollama and LangChain"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/ollama"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sarahec ]; };}