Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 62 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263{ lib, buildPythonPackage, fetchFromGitHub, hatchling, hatch-vcs, httpx, pydantic, pillow, pytest-asyncio, pytest-httpserver, pytestCheckHook,}:
buildPythonPackage rec { pname = "ollama"; version = "0.5.1"; pyproject = true;
src = fetchFromGitHub { owner = "ollama"; repo = "ollama-python"; tag = "v${version}"; hash = "sha256-XCsBdU8dUJIcfbvwUB6UNP2AhAmBxnk0kiFkOYcd1zY="; };
pythonRelaxDeps = [ "httpx" ];
build-system = [ hatchling hatch-vcs ];
dependencies = [ httpx pydantic ];
nativeCheckInputs = [ pillow pytest-asyncio pytest-httpserver pytestCheckHook ];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "ollama" ];
disabledTestPaths = [ # Don't test the examples "examples/" ];
meta = { description = "Ollama Python library"; homepage = "https://github.com/ollama/ollama-python"; changelog = "https://github.com/ollama/ollama-python/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}