poetry2nix/tests/env/default.nix

13 lines
259 B
Nix
Raw Normal View History

{ lib, 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
runCommand "env-test" {} ''
${env}/bin/python -c 'import alembic'
touch $out
''