poetry2nix/tests/watchfiles/default.nix

13 lines
276 B
Nix
Raw Normal View History

2023-07-14 21:27:04 +12:00
{ poetry2nix, python3, runCommand }:
2022-10-06 14:24:20 +02:00
let
env = poetry2nix.mkPoetryEnv {
python = python3;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
};
in
2023-07-14 21:27:04 +12:00
runCommand "watchfiles-test" { } ''
2022-10-06 14:24:20 +02:00
${env}/bin/python -c 'from watchfiles import watch'
touch $out
''