From 4565925a480b6d59b5dcdbf07d14cb784f8f88ae Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 27 Apr 2024 18:43:26 +0200 Subject: [PATCH] python312Packages.ollama: refactor - format with nixfmt --- .../python-modules/ollama/default.nix | 42 ++++++++----------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/pkgs/development/python-modules/ollama/default.nix b/pkgs/development/python-modules/ollama/default.nix index 90671928c22a..4d1999a8aae8 100644 --- a/pkgs/development/python-modules/ollama/default.nix +++ b/pkgs/development/python-modules/ollama/default.nix @@ -1,14 +1,15 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, httpx -, pillow -, poetry-core -, pytest-asyncio -, pytest-httpserver -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + httpx, + pillow, + poetry-core, + pytest-asyncio, + pytest-httpserver, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, }: buildPythonPackage rec { @@ -30,18 +31,13 @@ buildPythonPackage rec { --replace-fail "0.0.0" "${version}" ''; - pythonRelaxDeps = [ - "httpx" - ]; + pythonRelaxDeps = [ "httpx" ]; - build-system = [ - poetry-core - pythonRelaxDepsHook - ]; + build-system = [ poetry-core ]; - dependencies = [ - httpx - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; + + dependencies = [ httpx ]; nativeCheckInputs = [ pillow @@ -50,9 +46,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "ollama" - ]; + pythonImportsCheck = [ "ollama" ]; meta = with lib; { description = "Ollama Python library";