Always add uv package to pyshell

This commit is contained in:
Evie Litherland-Smith 2025-01-28 11:21:12 +00:00
parent 194bb8bca9
commit ebe37c815e

View file

@ -1,7 +1,7 @@
{
pkgs ? import <nixpkgs> { },
python3 ? pkgs.python3Full,
extraPackages ? with pkgs; [ uv ],
extraPackages ? [ ],
extraLibs ? [ ],
}:
let
@ -26,7 +26,10 @@ let
};
in
pkgs.mkShellNoCC {
packages = [ pythonWrapped ] ++ extraPackages;
packages = [
pythonWrapped
pkgs.uv
] ++ extraPackages;
shellHook = ''
[ ! -d .venv ] && ${pythonWrapped}/bin/python3 -m venv .venv
[ -f .venv/bin/activate ] && source .venv/bin/activate