mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 17:51:40 -05:00
28 lines
838 B
Nix
28 lines
838 B
Nix
{ lib, poetry2nix }:
|
|
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;
|
|
};
|
|
funcy = super.funcy.overridePythonAttrs (_old: {
|
|
preferWheel = true;
|
|
});
|
|
}
|
|
);
|
|
};
|
|
isWheelMaturin = drv.passthru.python.pkgs.maturin.src.isWheel or false;
|
|
isWheelFuncy = drv.passthru.python.pkgs.funcy.src.isWheel or false;
|
|
in
|
|
assert isWheelMaturin;
|
|
|
|
# HACK https://github.com/nix-community/poetry2nix/pull/948
|
|
# TODO Be able some day to invert this assertion
|
|
assert !isWheelFuncy;
|
|
drv
|