mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00

Pep508 markers alone are not always enough, see #50 This sadly introduces a minor breakage in `mkPoetryEnv`.
12 lines
259 B
Nix
12 lines
259 B
Nix
{ lib, poetry2nix, python3, runCommand }:
|
|
let
|
|
env = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
};
|
|
in
|
|
runCommand "env-test" {} ''
|
|
${env}/bin/python -c 'import alembic'
|
|
touch $out
|
|
''
|