Reduce packages needed in venv template
This commit is contained in:
parent
fd52ad19dd
commit
8eaa5a7839
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue