poetry2nix/tests/watchfiles/default.nix

14 lines
281 B
Nix
Raw Normal View History

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