poetry2nix/tests/prefer-wheel/default.nix
adisbladis c0c6038262
Fix tests
Something upstream broke a lot of python37 packages and I'm not
interested in debugging this.
2020-11-30 19:27:48 +01:00

19 lines
534 B
Nix

{ lib, poetry2nix, python37 }:
let
drv = poetry2nix.mkPoetryApplication {
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;
};
}
);
};
isWheelAttr = drv.passthru.python.pkgs.maturin.src.isWheel or false;
in
assert isWheelAttr; drv