mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00

Something upstream broke a lot of python37 packages and I'm not interested in debugging this.
19 lines
534 B
Nix
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
|