Reduce packages needed in venv template

This commit is contained in:
Evie Litherland-Smith 2023-05-17 15:04:58 +01:00
parent fd52ad19dd
commit 8eaa5a7839

View file

@ -1,14 +1,6 @@
{ pkgs ? import <nixpkgs> { }, python ? pkgs.python39, ... }: { pkgs ? import <nixpkgs> { }, python ? pkgs.python39, ... }:
pkgs.mkShell { pkgs.mkShell {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [ (python.withPackages (ps: with ps; [ pip wheel ])) poetry git ];
(python.withPackages (ps: with ps; [ pip wheel ]))
poetry
black
isort
ruff
git
];
shellHook = '' shellHook = ''
[ -d .venv ] || python -m venv .venv [ -d .venv ] || python -m venv .venv
source .venv/bin/activate source .venv/bin/activate