Add poetry2nix env

This commit is contained in:
Andreas Zweili 2024-04-20 12:30:04 +02:00
parent dcc40fe883
commit 77fbcb3945
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,14 @@
projectDir = ./.;
python = pkgs.python312;
};
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = pkgs.python312;
groups = [ "dev" ];
editablePackageSources = {
snapbin = ./snapbin;
};
};
tests = pkgs.writeShellScriptBin "python-test" ''
trap "process-compose down &> /dev/null" EXIT
process-compose up --tui=false &