From 0d28de771e629937e2734cbef3ad6d78962b5a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 9 Aug 2024 06:18:03 -0700 Subject: [PATCH] python312Packages.open-interpreter: 0.2.0 -> 0.3.6 Diff: https://github.com/KillianLucas/open-interpreter/compare/v0.2.0...v0.3.6 Changelog: https://github.com/KillianLucas/open-interpreter/releases/tag/v0.3.6 --- .../open-interpreter/default.nix | 62 +++++++++++-------- 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/pkgs/development/python-modules/open-interpreter/default.nix b/pkgs/development/python-modules/open-interpreter/default.nix index 0fd3600d5d3e..12e4cabb0768 100644 --- a/pkgs/development/python-modules/open-interpreter/default.nix +++ b/pkgs/development/python-modules/open-interpreter/default.nix @@ -5,74 +5,86 @@ pythonOlder, poetry-core, - appdirs, + setuptools, astor, inquirer, - litellm, pyyaml, rich, six, - tiktoken, tokentrim, wget, psutil, html2image, + send2trash, ipykernel, jupyter-client, matplotlib, toml, - posthog, - openai, - setuptools, + tiktoken, + platformdirs, + pydantic, + google-generativeai, + pynput, + pyperclip, + yaspin, + shortuuid, + litellm, + + nltk, }: buildPythonPackage rec { pname = "open-interpreter"; - version = "0.2.0"; + version = "0.3.6"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "KillianLucas"; - repo = pname; + repo = "open-interpreter"; rev = "v${version}"; - hash = "sha256-XeJ6cADtyXtqoTXwYJu+i9d3NYbJCLpYOeZYmdImtwI="; + hash = "sha256-TeBiRylrq5CrAG9XS47Z9GlruAv7V7Nsl4QbSV55isM="; }; - # Remove unused dependency - postPatch = '' - substituteInPlace pyproject.toml --replace 'git-python = "^1.0.3"' "" - ''; + pythonRemoveDeps = [ "git-python" ]; - pythonRelaxDeps = [ "tiktoken" ]; - - nativeBuildInputs = [ - poetry-core + pythonRelaxDeps = [ + "psutil" + "pynput" + "yaspin" ]; - propagatedBuildInputs = [ - appdirs + build-system = [ poetry-core ]; + + dependencies = [ + setuptools astor inquirer - litellm pyyaml rich six - tiktoken tokentrim wget psutil html2image + send2trash ipykernel jupyter-client matplotlib toml - posthog - openai + tiktoken + platformdirs + pydantic + google-generativeai + pynput + pyperclip + yaspin + shortuuid + litellm - # Not explicitly in pyproject.toml but required due to use of `pkgs_resources` - setuptools + # marked optional in pyproject.toml but still required? + nltk ]; pythonImportsCheck = [ "interpreter" ];