poetry2nix/tests/prefer-wheel/default.nix

27 lines
580 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.defaultPoetryOverrides
# This is also in overrides.nix but repeated for completeness
(
self: super: {
maturin = super.maturin.override {
preferWheel = true;
};
}
)
];
};
url = lib.elemAt drv.passthru.python.pkgs.maturin.src.urls 0;
in
assert lib.hasSuffix "whl" url; drv