14 buildPythonPackage rec {
19 disabled = pythonOlder "3.8";
21 src = fetchFromGitHub {
23 repo = "ollama-python";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-27OJwPvHBxCdaiHk8EQ2s1OeBzgsrzp1MjgKHNgvz+A=";
29 substituteInPlace pyproject.toml \
30 --replace-fail "0.0.0" "${version}"
33 pythonRelaxDeps = [ "httpx" ];
35 build-system = [ poetry-core ];
37 dependencies = [ httpx ];
46 pythonImportsCheck = [ "ollama" ];
49 description = "Ollama Python library";
50 homepage = "https://github.com/ollama/ollama-python";
51 changelog = "https://github.com/ollama/ollama-python/releases/tag/v${version}";
52 license = licenses.mit;
53 maintainers = with maintainers; [ fab ];