mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 09:41:39 -05:00
19 lines
535 B
Nix
19 lines
535 B
Nix
{ poetry2nix, python3, pkgs, runCommand }:
|
|
let
|
|
env = poetry2nix.mkPoetryEnv {
|
|
python = python3;
|
|
pyproject = ./pyproject.toml;
|
|
poetrylock = ./poetry.lock;
|
|
preferWheels = false;
|
|
overrides = poetry2nix.overrides.withDefaults (
|
|
_: super: {
|
|
numpy = super.numpy.override {
|
|
preferWheel = true;
|
|
};
|
|
}
|
|
);
|
|
};
|
|
in
|
|
assert !env.python.pkgs.contourpy.src.isWheel; runCommand "contourpy-no-wheel" { } ''
|
|
${env}/bin/python -c 'import contourpy; print(contourpy.__version__)' > $out
|
|
''
|