From 5941de3fbf314aaefea112d8e69679fe4d9f66d4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 17 Apr 2025 17:18:28 +0200 Subject: [PATCH] python312Packages.open-interpreter: 0.3.6 -> 0.4.2 Diff: https://github.com/KillianLucas/open-interpreter/compare/v0.3.6...v0.4.2 Changelog: https://github.com/KillianLucas/open-interpreter/releases/tag/v0.4.2 --- .../open-interpreter/default.nix | 112 ++++++++++-------- 1 file changed, 64 insertions(+), 48 deletions(-) diff --git a/pkgs/development/python-modules/open-interpreter/default.nix b/pkgs/development/python-modules/open-interpreter/default.nix index dcd9ec37333c..c6b93896adb1 100644 --- a/pkgs/development/python-modules/open-interpreter/default.nix +++ b/pkgs/development/python-modules/open-interpreter/default.nix @@ -2,88 +2,104 @@ lib, fetchFromGitHub, buildPythonPackage, - pythonOlder, poetry-core, - setuptools, + anthropic, astor, - inquirer, - pyyaml, - rich, - six, - tokentrim, - wget, - psutil, + fastapi, + google-generativeai, html2image, - send2trash, + html2text, + inquirer, ipykernel, jupyter-client, - matplotlib, - toml, - tiktoken, - platformdirs, - pydantic, - google-generativeai, - pynput, - pyperclip, - yaspin, - shortuuid, litellm, + matplotlib, + platformdirs, + psutil, + pyautogui, + pydantic, + pyperclip, + pyyaml, + rich, + selenium, + send2trash, + setuptools, + shortuuid, + six, + starlette, + tiktoken, + tokentrim, + toml, + typer, + uvicorn, + webdriver-manager, + wget, + yaspin, nltk, }: buildPythonPackage rec { pname = "open-interpreter"; - version = "0.3.6"; + version = "0.4.2"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "KillianLucas"; repo = "open-interpreter"; - rev = "v${version}"; - hash = "sha256-TeBiRylrq5CrAG9XS47Z9GlruAv7V7Nsl4QbSV55isM="; + tag = "v${version}"; + hash = "sha256-fogCcWAhcrCrrcV0q4oKttkf/GeJaJSZnbgiFxvySs8="; }; pythonRemoveDeps = [ "git-python" ]; pythonRelaxDeps = [ + "anthropic" "google-generativeai" "psutil" - "pynput" + "rich" + "starlette" "tiktoken" + "typer" "yaspin" ]; build-system = [ poetry-core ]; dependencies = [ - setuptools + anthropic astor - inquirer - pyyaml - rich - six - tokentrim - wget - psutil + fastapi + google-generativeai html2image - send2trash + html2text + inquirer ipykernel jupyter-client - matplotlib - toml - tiktoken - platformdirs - pydantic - google-generativeai - pynput - pyperclip - yaspin - shortuuid litellm + matplotlib + platformdirs + psutil + pyautogui + pydantic + pyperclip + pyyaml + rich + selenium + send2trash + setuptools + shortuuid + six + starlette + tiktoken + tokentrim + toml + typer + uvicorn + webdriver-manager + wget + yaspin # marked optional in pyproject.toml but still required? nltk @@ -94,12 +110,12 @@ buildPythonPackage rec { # Most tests required network access doCheck = false; - meta = with lib; { + meta = { description = "OpenAI's Code Interpreter in your terminal, running locally"; homepage = "https://github.com/KillianLucas/open-interpreter"; - license = licenses.mit; + license = lib.licenses.mit; changelog = "https://github.com/KillianLucas/open-interpreter/releases/tag/v${version}"; - maintainers = with maintainers; [ happysalada ]; + maintainers = with lib.maintainers; [ happysalada ]; mainProgram = "interpreter"; }; }