diff options
Diffstat (limited to 'pkgs/development/python-modules/llm/default.nix')
-rw-r--r-- | pkgs/development/python-modules/llm/default.nix | 87 |
1 files changed, 42 insertions, 45 deletions
diff --git a/pkgs/development/python-modules/llm/default.nix b/pkgs/development/python-modules/llm/default.nix index 5626da5e3858e..899a95ab3b269 100644 --- a/pkgs/development/python-modules/llm/default.nix +++ b/pkgs/development/python-modules/llm/default.nix @@ -1,18 +1,19 @@ -{ lib -, buildPythonApplication -, buildPythonPackage -, fetchFromGitHub -, makeWrapper -, pytestCheckHook -, python3 -, pythonOlder -, ruff -, setuptools +{ + lib, + buildPythonApplication, + buildPythonPackage, + fetchFromGitHub, + makeWrapper, + pytestCheckHook, + python3, + pythonOlder, + ruff, + setuptools, }: let llm = buildPythonPackage rec { pname = "llm"; - version = "0.13.1"; + version = "0.14"; pyproject = true; disabled = pythonOlder "3.8"; @@ -21,16 +22,12 @@ let owner = "simonw"; repo = "llm"; rev = "refs/tags/${version}"; - hash = "sha256-Nq6pduzl8IK+nA3pctst/W4ux7+P6mBFTEHMF+vtBQw="; + hash = "sha256-CgGVFUsntVkF0zORAtYQQMAeGtIwBbj9hE0Ei1OCGq4="; }; - patches = [ - ./001-disable-install-uninstall-commands.patch - ]; + patches = [ ./001-disable-install-uninstall-commands.patch ]; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = with python3.pkgs; [ click-default-group @@ -60,11 +57,11 @@ let "tests/" ]; - pythonImportsCheck = [ - "llm" - ]; + pythonImportsCheck = [ "llm" ]; - passthru = {inherit withPlugins;}; + passthru = { + inherit withPlugins; + }; meta = with lib; { homepage = "https://github.com/simonw/llm"; @@ -72,37 +69,37 @@ let changelog = "https://github.com/simonw/llm/releases/tag/${version}"; license = licenses.asl20; mainProgram = "llm"; - maintainers = with maintainers; [aldoborrero]; + maintainers = with maintainers; [ aldoborrero ]; }; }; - withPlugins = plugins: buildPythonApplication { - inherit (llm) pname version; - format = "other"; + withPlugins = + plugins: + buildPythonApplication { + inherit (llm) pname version; + format = "other"; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.8"; - dontUnpack = true; - dontBuild = true; - doCheck = false; + dontUnpack = true; + dontBuild = true; + doCheck = false; - nativeBuildInputs = [ - makeWrapper - ]; + nativeBuildInputs = [ makeWrapper ]; - installPhase = '' - makeWrapper ${llm}/bin/llm $out/bin/llm \ - --prefix PYTHONPATH : "${llm}/${python3.sitePackages}:$PYTHONPATH" - ln -sfv ${llm}/lib $out/lib - ''; + installPhase = '' + makeWrapper ${llm}/bin/llm $out/bin/llm \ + --prefix PYTHONPATH : "${llm}/${python3.sitePackages}:$PYTHONPATH" + ln -sfv ${llm}/lib $out/lib + ''; - propagatedBuildInputs = llm.propagatedBuildInputs ++ plugins; + propagatedBuildInputs = llm.propagatedBuildInputs ++ plugins; - passthru = llm.passthru // { - withPlugins = morePlugins: withPlugins (morePlugins ++ plugins); - }; + passthru = llm.passthru // { + withPlugins = morePlugins: withPlugins (morePlugins ++ plugins); + }; - inherit (llm) meta; - }; + inherit (llm) meta; + }; in - llm +llm |