diff --git a/plugins/by-name/jupytext/default.nix b/plugins/by-name/jupytext/default.nix index 4fcecb9a..de7e54f6 100644 --- a/plugins/by-name/jupytext/default.nix +++ b/plugins/by-name/jupytext/default.nix @@ -1,6 +1,5 @@ { lib, - helpers, ... }: with lib; @@ -62,22 +61,7 @@ lib.nixvim.plugins.mkNeovimPlugin { }; }; - extraOptions = { - python3Dependencies = mkOption { - type = with types; functionTo (listOf package); - default = - p: with p; [ - jupytext - ]; - defaultText = literalExpression '' - p: with p; [ - jupytext - ] - ''; - description = "Python packages to add to the `PYTHONPATH` of neovim."; - }; - }; - - extraConfig = cfg: { extraPython3Packages = cfg.python3Dependencies; }; + dependencies = [ "jupytext" ]; + inherit (import ./deprecations.nix lib) imports; } diff --git a/plugins/by-name/jupytext/deprecations.nix b/plugins/by-name/jupytext/deprecations.nix new file mode 100644 index 00000000..722296c0 --- /dev/null +++ b/plugins/by-name/jupytext/deprecations.nix @@ -0,0 +1,13 @@ +lib: { + imports = [ + # TODO: introduced 2025-10-25: remove after 26.05 + (lib.mkRenamedOptionModule + [ + "plugins" + "jupytext" + "python3Dependencies" + ] + [ "extraPython3Packages" ] + ) + ]; +}