From e4ab8554803eb1b6f0cf2b546dd5b4e7176bd99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Mon, 2 Sep 2024 09:27:10 +0200 Subject: [PATCH] nix: improve impure devshell (#2478) - Add some test dependencies. - Install server in venv. - Install Python client in venv. --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 0739c90a..82f9ab1d 100644 --- a/flake.nix +++ b/flake.nix @@ -79,16 +79,22 @@ ] ++ (with python3.pkgs; [ venvShellHook + docker pip ipdb + pytest + pytest-asyncio + syrupy ]); inputsFrom = [ server ]; venvDir = "./.venv"; - postVenv = '' + postVenvCreation = '' unset SOURCE_DATE_EPOCH + ( cd server ; python -m pip install --no-dependencies -e . ) + ( cd clients/python ; python -m pip install --no-dependencies -e . ) ''; postShellHook = '' unset SOURCE_DATE_EPOCH