2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, semgrep
|
|
|
|
}:
|
|
|
|
let
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.1.11";
|
2023-10-09 19:29:22 +00:00
|
|
|
in
|
|
|
|
python3.pkgs.buildPythonApplication {
|
|
|
|
pname = "open-interpreter";
|
|
|
|
format = "pyproject";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KillianLucas";
|
|
|
|
repo = "open-interpreter";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-viUMGUBy5UNWag6P8tXE4TcJIx53Q/tASNV3bmCCK0g=";
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3.pkgs.poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
appdirs
|
|
|
|
astor
|
|
|
|
gitpython
|
|
|
|
huggingface-hub
|
|
|
|
inquirer
|
2023-11-16 04:20:00 +00:00
|
|
|
jinja2
|
2023-10-09 19:29:22 +00:00
|
|
|
litellm
|
|
|
|
openai
|
|
|
|
# pyreadline3 # this is a windows deps
|
|
|
|
python-dotenv
|
|
|
|
pyyaml
|
|
|
|
rich
|
|
|
|
six
|
|
|
|
tiktoken
|
2023-11-16 04:20:00 +00:00
|
|
|
tokenizers
|
2023-10-09 19:29:22 +00:00
|
|
|
tokentrim
|
|
|
|
wget
|
|
|
|
yaspin
|
|
|
|
] ++ [
|
|
|
|
semgrep
|
|
|
|
];
|
|
|
|
|
|
|
|
# the import check phase fails trying to do a network request to openai
|
|
|
|
# because of litellm
|
|
|
|
# pythonImportsCheck = [ "interpreter" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenAI's Code Interpreter in your terminal, running locally";
|
|
|
|
homepage = "https://github.com/KillianLucas/open-interpreter";
|
|
|
|
license = licenses.mit;
|
|
|
|
changelog = "https://github.com/KillianLucas/open-interpreter/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
mainProgram = "interpreter";
|
|
|
|
};
|
|
|
|
}
|