From becfe75a67ab4dd39ea5c5180c0515cb6caffd43 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 12 Mar 2024 21:38:56 +0100 Subject: [PATCH] plugins/molten: add python3 dependencies --- plugins/utils/molten.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/plugins/utils/molten.nix b/plugins/utils/molten.nix index ab50d771..c2891ebb 100644 --- a/plugins/utils/molten.nix +++ b/plugins/utils/molten.nix @@ -191,4 +191,32 @@ with helpers.vim-plugin; wrap_output = false; show_mimetype_debug = false; }; + + extraOptions = { + python3Dependencies = mkOption { + type = with types; functionTo (listOf package); + default = p: + with p; [ + pynvim + jupyter-client + cairosvg + ipython + nbformat + ]; + defaultText = literalExpression '' + p: with p; [ + pynvim + jupyter-client + cairosvg + ipython + nbformat + ] + ''; + description = "Python packages to add to the `PYTHONPATH` of neovim."; + }; + }; + + extraConfig = cfg: { + extraPython3Packages = cfg.python3Dependencies; + }; }