nix: improve impure devshell (#2478)
- Add some test dependencies. - Install server in venv. - Install Python client in venv.
This commit is contained in:
parent
d9fbbaafb0
commit
e4ab855480
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue