poetry2nix/tests/option/default.nix
2023-10-26 12:28:09 +13:00

13 lines
257 B
Nix

{ 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
''