Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 58 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchFromGitHub, httpx, pillow, poetry-core, pytest-asyncio, pytest-httpserver, pytestCheckHook, pythonOlder, pythonRelaxDepsHook,}:
buildPythonPackage rec { pname = "ollama"; version = "0.2.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "ollama"; repo = "ollama-python"; rev = "refs/tags/v${version}"; hash = "sha256-kfotKUUXBekUd0X32BYAjNWvQJO94bdEDCSrBg2yJRQ="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "0.0.0" "${version}" '';
pythonRelaxDeps = [ "httpx" ];
build-system = [ poetry-core ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [ httpx ];
nativeCheckInputs = [ pillow pytest-asyncio pytest-httpserver pytestCheckHook ];
pythonImportsCheck = [ "ollama" ];
meta = with lib; { description = "Ollama Python library"; homepage = "https://github.com/ollama/ollama-python"; changelog = "https://github.com/ollama/ollama-python/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}