mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
12 lines
381 B
Nix
12 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
|
|
''
|