nix: improve impure devshell (#2478)

- Add some test dependencies.
- Install server in venv.
- Install Python client in venv.
This commit is contained in:
Daniël de Kok 2024-09-02 09:27:10 +02:00 committed by GitHub
parent d9fbbaafb0
commit e4ab855480
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -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