poetry2nix/tests/prefer-wheel/default.nix

21 lines
557 B
Nix
Raw Normal View History

{ lib, poetry2nix, python3 }:
let
drv = poetry2nix.mkPoetryApplication {
python = python3;
pyproject = ./pyproject.toml;
poetrylock = ./poetry.lock;
src = lib.cleanSource ./.;
overrides = poetry2nix.overrides.withDefaults
# This is also in overrides.nix but repeated for completeness
(
self: super: {
maturin = super.maturin.override {
preferWheel = true;
};
}
);
};
2020-04-30 00:09:13 +02:00
isWheelAttr = drv.passthru.python.pkgs.maturin.src.isWheel or false;
in
2020-04-30 00:09:13 +02:00
assert isWheelAttr; drv