Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 94 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ lib, 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}:
buildPythonPackage rec { pname = "open-interpreter"; version = "0.2.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "KillianLucas"; repo = pname; rev = "v${version}"; hash = "sha256-XeJ6cADtyXtqoTXwYJu+i9d3NYbJCLpYOeZYmdImtwI="; };
# Remove unused dependency postPatch = '' substituteInPlace pyproject.toml --replace 'git-python = "^1.0.3"' "" '';
pythonRelaxDeps = [ "tiktoken" ];
nativeBuildInputs = [ poetry-core pythonRelaxDepsHook ];
propagatedBuildInputs = [ appdirs astor inquirer litellm pyyaml rich six tiktoken tokentrim wget psutil html2image ipykernel jupyter-client matplotlib toml posthog openai
# Not explicitly in pyproject.toml but required due to use of `pkgs_resources` setuptools ];
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"; };}