poetry2nix/tests/option/default.nix

14 lines
262 B
Nix
Raw Normal View History

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