2023-04-19 11:52:47 +01:00
|
|
|
{ pkgs ? import <nixpkgs> { }, python ? pkgs.python39, ... }:
|
2023-04-04 09:48:40 +01:00
|
|
|
pkgs.mkShell {
|
2023-05-17 15:04:58 +01:00
|
|
|
nativeBuildInputs = with pkgs; [ (python.withPackages (ps: with ps; [ pip wheel ])) poetry git ];
|
2023-04-04 09:48:40 +01:00
|
|
|
shellHook = ''
|
2023-04-20 16:01:26 +01:00
|
|
|
[ -d .venv ] || python -m venv .venv
|
2023-05-12 15:27:21 +01:00
|
|
|
source .venv/bin/activate
|
2023-04-04 09:48:40 +01:00
|
|
|
'';
|
|
|
|
}
|