mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-08 18:51:37 -05:00
14 lines
387 B
Nix
14 lines
387 B
Nix
![]() |
{ lib, poetry2nix, python3, runCommand }:
|
||
|
let
|
||
|
env = poetry2nix.mkPoetryEnv {
|
||
|
python = python3;
|
||
|
pyproject = ./pyproject.toml;
|
||
|
poetrylock = ./poetry.lock;
|
||
|
preferWheels = true;
|
||
|
};
|
||
|
isWheelWheel = env.python.pkgs.wheel.src.isWheel;
|
||
|
in
|
||
|
assert (!isWheelWheel); runCommand "wheel-wheel-test" { } ''
|
||
|
${env}/bin/python -c 'import wheel; print(wheel.__version__)' > $out
|
||
|
''
|