Files
nixpkgs/pkgs/development/python-modules/open-interpreter/default.nix
T
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

106 lines
1.7 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
pythonOlder,
poetry-core,
setuptools,
astor,
inquirer,
pyyaml,
rich,
six,
tokentrim,
wget,
psutil,
html2image,
send2trash,
ipykernel,
jupyter-client,
matplotlib,
toml,
tiktoken,
platformdirs,
pydantic,
google-generativeai,
pynput,
pyperclip,
yaspin,
shortuuid,
litellm,
nltk,
}:
buildPythonPackage rec {
pname = "open-interpreter";
version = "0.3.6";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "KillianLucas";
repo = "open-interpreter";
rev = "v${version}";
hash = "sha256-TeBiRylrq5CrAG9XS47Z9GlruAv7V7Nsl4QbSV55isM=";
};
pythonRemoveDeps = [ "git-python" ];
pythonRelaxDeps = [
"google-generativeai"
"psutil"
"pynput"
"tiktoken"
"yaspin"
];
build-system = [ poetry-core ];
dependencies = [
setuptools
astor
inquirer
pyyaml
rich
six
tokentrim
wget
psutil
html2image
send2trash
ipykernel
jupyter-client
matplotlib
toml
tiktoken
platformdirs
pydantic
google-generativeai
pynput
pyperclip
yaspin
shortuuid
litellm
# marked optional in pyproject.toml but still required?
nltk
];
pythonImportsCheck = [ "interpreter" ];
# Most tests required network access
doCheck = false;
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";
};
}