poetry2nix/tests/prefer-wheel/default.nix
2020-04-29 14:12:59 +01:00

20 lines
562 B
Nix

{ 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;
};
}
);
};
url = lib.elemAt drv.passthru.python.pkgs.maturin.src.urls 0;
in
assert lib.hasSuffix "whl" url; drv