mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 17:51:40 -05:00
13 lines
381 B
Nix
13 lines
381 B
Nix
![]() |
{ poetry2nix, python3, pkgs, runCommand }:
|
||
|
let
|
||
|
env = poetry2nix.mkPoetryEnv {
|
||
|
python = python3;
|
||
|
pyproject = ./pyproject.toml;
|
||
|
poetrylock = ./poetry.lock;
|
||
|
preferWheels = false;
|
||
|
};
|
||
|
in
|
||
|
assert !(env.python.pkgs.cairocffi.src.isWheel or false); runCommand "cairocffi-no-wheel" { } ''
|
||
|
${env}/bin/python -c 'import cairocffi; print(cairocffi.__version__)' > $out
|
||
|
''
|