poetry2nix/tests/returns/default.nix

14 lines
264 B
Nix
Raw Normal View History

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