Skip to content

Commit 5941de3

Browse files
committed
1 parent 996908b commit 5941de3

File tree

1 file changed

+56
-40
lines changed
  • pkgs/development/python-modules/open-interpreter

1 file changed

+56
-40
lines changed

pkgs/development/python-modules/open-interpreter/default.nix

Lines changed: 56 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,88 +2,104 @@
22
lib,
33
fetchFromGitHub,
44
buildPythonPackage,
5-
pythonOlder,
65
poetry-core,
76

8-
setuptools,
7+
anthropic,
98
astor,
10-
inquirer,
11-
pyyaml,
12-
rich,
13-
six,
14-
tokentrim,
15-
wget,
16-
psutil,
9+
fastapi,
10+
google-generativeai,
1711
html2image,
18-
send2trash,
12+
html2text,
13+
inquirer,
1914
ipykernel,
2015
jupyter-client,
16+
litellm,
2117
matplotlib,
22-
toml,
23-
tiktoken,
2418
platformdirs,
19+
psutil,
20+
pyautogui,
2521
pydantic,
26-
google-generativeai,
27-
pynput,
2822
pyperclip,
29-
yaspin,
23+
pyyaml,
24+
rich,
25+
selenium,
26+
send2trash,
27+
setuptools,
3028
shortuuid,
31-
litellm,
29+
six,
30+
starlette,
31+
tiktoken,
32+
tokentrim,
33+
toml,
34+
typer,
35+
uvicorn,
36+
webdriver-manager,
37+
wget,
38+
yaspin,
3239

3340
nltk,
3441
}:
3542

3643
buildPythonPackage rec {
3744
pname = "open-interpreter";
38-
version = "0.3.6";
45+
version = "0.4.2";
3946
pyproject = true;
4047

41-
disabled = pythonOlder "3.9";
42-
4348
src = fetchFromGitHub {
4449
owner = "KillianLucas";
4550
repo = "open-interpreter";
46-
rev = "v${version}";
47-
hash = "sha256-TeBiRylrq5CrAG9XS47Z9GlruAv7V7Nsl4QbSV55isM=";
51+
tag = "v${version}";
52+
hash = "sha256-fogCcWAhcrCrrcV0q4oKttkf/GeJaJSZnbgiFxvySs8=";
4853
};
4954

5055
pythonRemoveDeps = [ "git-python" ];
5156

5257
pythonRelaxDeps = [
58+
"anthropic"
5359
"google-generativeai"
5460
"psutil"
55-
"pynput"
61+
"rich"
62+
"starlette"
5663
"tiktoken"
64+
"typer"
5765
"yaspin"
5866
];
5967

6068
build-system = [ poetry-core ];
6169

6270
dependencies = [
63-
setuptools
71+
anthropic
6472
astor
65-
inquirer
66-
pyyaml
67-
rich
68-
six
69-
tokentrim
70-
wget
71-
psutil
73+
fastapi
74+
google-generativeai
7275
html2image
73-
send2trash
76+
html2text
77+
inquirer
7478
ipykernel
7579
jupyter-client
80+
litellm
7681
matplotlib
77-
toml
78-
tiktoken
7982
platformdirs
83+
psutil
84+
pyautogui
8085
pydantic
81-
google-generativeai
82-
pynput
8386
pyperclip
84-
yaspin
87+
pyyaml
88+
rich
89+
selenium
90+
send2trash
91+
setuptools
8592
shortuuid
86-
litellm
93+
six
94+
starlette
95+
tiktoken
96+
tokentrim
97+
toml
98+
typer
99+
uvicorn
100+
webdriver-manager
101+
wget
102+
yaspin
87103

88104
# marked optional in pyproject.toml but still required?
89105
nltk
@@ -94,12 +110,12 @@ buildPythonPackage rec {
94110
# Most tests required network access
95111
doCheck = false;
96112

97-
meta = with lib; {
113+
meta = {
98114
description = "OpenAI's Code Interpreter in your terminal, running locally";
99115
homepage = "https://github.com/KillianLucas/open-interpreter";
100-
license = licenses.mit;
116+
license = lib.licenses.mit;
101117
changelog = "https://github.com/KillianLucas/open-interpreter/releases/tag/v${version}";
102-
maintainers = with maintainers; [ happysalada ];
118+
maintainers = with lib.maintainers; [ happysalada ];
103119
mainProgram = "interpreter";
104120
};
105121
}

0 commit comments

Comments
 (0)