Unverified Commit e4ab8554 authored by Daniël de Kok's avatar Daniël de Kok Committed by GitHub
Browse files

nix: improve impure devshell (#2478)

- Add some test dependencies.
- Install server in venv.
- Install Python client in venv.
parent d9fbbaaf
...@@ -79,16 +79,22 @@ ...@@ -79,16 +79,22 @@
] ]
++ (with python3.pkgs; [ ++ (with python3.pkgs; [
venvShellHook venvShellHook
docker
pip pip
ipdb ipdb
pytest
pytest-asyncio
syrupy
]); ]);
inputsFrom = [ server ]; inputsFrom = [ server ];
venvDir = "./.venv"; venvDir = "./.venv";
postVenv = '' postVenvCreation = ''
unset SOURCE_DATE_EPOCH unset SOURCE_DATE_EPOCH
( cd server ; python -m pip install --no-dependencies -e . )
( cd clients/python ; python -m pip install --no-dependencies -e . )
''; '';
postShellHook = '' postShellHook = ''
unset SOURCE_DATE_EPOCH unset SOURCE_DATE_EPOCH
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment