poetry2nix/tests/env/default.nix

14 lines
255 B
Nix
Raw Normal View History

2023-10-26 12:18:24 +13:00
{ poetry2nix, python3, runCommand }:
2019-12-17 20:58:41 +01:00
let
env = poetry2nix.mkPoetryEnv {
python = python3;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
};
2019-12-17 20:58:41 +01:00
in
2020-05-19 21:06:02 +01:00
runCommand "env-test"
{ } ''
${env}/bin/python -c 'import alembic'
touch $out
''