From eb2e89cb48bb219a5dc78de1d922d014c69593cc Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 25 Mar 2024 07:51:01 +0000 Subject: [PATCH] Update pythonshell template --- templates | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates b/templates index 62c56f6..8865f8e 100644 --- a/templates +++ b/templates @@ -177,10 +177,13 @@ nix-mode (p (completing-read "Platform: " '("all" "allBut" "arm" "cygwin" "darwin" "freebsd" "gnu" "i686" "illumos" "linux" "mesaPlatforms" "mips" "netbsd" "none" "openbsd" "unix" "x86"))) ";" n> q "};" n> "}" ) (pythonshell "with import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};" - n> "with python3Packages;" n> "mkShellNoCC {" - n> "packages = [" (p) "];" - n> "};") + n> "packages = [" + n> "(" (p "python3") ".withPackages" + n> "(ps: with ps; ["(p "python-lsp-server isort mypy") "]))" + n> q + n> "];" + n> "}") (poetryshell "with import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};" n "with (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};" n> "(mkPoetryEnv rec {"