Add nix-shell poetry template

This commit is contained in:
Evie Litherland-Smith 2024-03-18 13:36:07 +00:00
parent 96f618020b
commit 88e15182c6

View file

@ -177,6 +177,15 @@ 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> "}"
)
(poetryshell "let"
n> "pkgs = import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};"
n> "poetry2nix = (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};"
n> "in"
n> "pkgs.mkShellNoCC {"
n> "packages = [" p "];"
n> "}")
(poetrypackage "") ; TODO
python-base-mode
(clss "class " (p "Class") "(" p "):"