From 25649226651bd2451baaacc9c97be2602065f20a Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Wed, 17 Jan 2024 12:34:45 -0800 Subject: [PATCH] python311Packages.open-interpreter: init at 0.2.0 --- .../open-interpreter/default.nix | 35 +++++++++++++++---- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 32 insertions(+), 7 deletions(-) rename pkgs/{tools/llm => development/python-modules}/open-interpreter/default.nix (76%) diff --git a/pkgs/tools/llm/open-interpreter/default.nix b/pkgs/development/python-modules/open-interpreter/default.nix similarity index 76% rename from pkgs/tools/llm/open-interpreter/default.nix rename to pkgs/development/python-modules/open-interpreter/default.nix index ced3141006fc..2f256aa32701 100644 --- a/pkgs/tools/llm/open-interpreter/default.nix +++ b/pkgs/development/python-modules/open-interpreter/default.nix @@ -1,14 +1,37 @@ { lib -, python3 , fetchFromGitHub +, buildPythonPackage +, pythonOlder +, pythonRelaxDepsHook +, poetry-core + +, appdirs +, astor +, inquirer +, litellm +, pyyaml +, rich +, six +, tiktoken +, tokentrim +, wget +, psutil +, html2image +, ipykernel +, jupyter-client +, matplotlib +, toml +, posthog +, openai +, setuptools }: -python3.pkgs.buildPythonApplication rec { +buildPythonPackage rec { pname = "open-interpreter"; version = "0.2.0"; pyproject = true; - disabled = python3.pkgs.pythonOlder "3.9"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "KillianLucas"; @@ -27,11 +50,11 @@ python3.pkgs.buildPythonApplication rec { ]; nativeBuildInputs = [ - python3.pkgs.poetry-core - python3.pkgs.pythonRelaxDepsHook + poetry-core + pythonRelaxDepsHook ]; - propagatedBuildInputs = with python3.pkgs; [ + propagatedBuildInputs = [ appdirs astor inquirer diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2f18b99caaed..866b0d483e56 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11587,7 +11587,7 @@ with pkgs; open-ecard = callPackage ../tools/security/open-ecard { }; - open-interpreter = callPackage ../tools/llm/open-interpreter { }; + open-interpreter = with python3Packages; toPythonApplication open-interpreter; openjade = callPackage ../tools/text/sgml/openjade { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 314fd3f8ff8f..9ddfadf07d4a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8657,6 +8657,8 @@ self: super: with self; { open-garage = callPackage ../development/python-modules/open-garage { }; + open-interpreter = callPackage ../development/python-modules/open-interpreter { }; + open-meteo = callPackage ../development/python-modules/open-meteo { }; openai-triton = callPackage ../development/python-modules/openai-triton {