poetry2nix/tests/returns/default.nix

14 lines
259 B
Nix
Raw Normal View History

2023-10-26 12:18:24 +13:00
{ poetry2nix, python3, runCommand }:
2023-03-15 16:53:22 -07:00
let
env = poetry2nix.mkPoetryEnv {
python = python3;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
};
in
runCommand "returns-test"
{ } ''
${env}/bin/python -c 'import returns'
touch $out
''