mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-05 09:11:39 -05:00
overrides: Add override for wheel when building from source
This commit is contained in:
parent
649c50051f
commit
72a0e2749d
1 changed files with 4 additions and 2 deletions
|
@ -1269,13 +1269,15 @@ self: super:
|
||||||
format = "wheel";
|
format = "wheel";
|
||||||
};
|
};
|
||||||
# If "wheel" is built from source
|
# If "wheel" is built from source
|
||||||
sourcePackage = (
|
sourcePackage = ((
|
||||||
pkgs.python3.pkgs.override {
|
pkgs.python3.pkgs.override {
|
||||||
python = self.python;
|
python = self.python;
|
||||||
}
|
}
|
||||||
).wheel.override {
|
).wheel.override {
|
||||||
inherit (self) buildPythonPackage bootstrapped-pip setuptools;
|
inherit (self) buildPythonPackage bootstrapped-pip setuptools;
|
||||||
};
|
}).overrideAttrs (old: {
|
||||||
|
inherit (super.wheel) pname name version src;
|
||||||
|
});
|
||||||
in
|
in
|
||||||
if isWheel then wheelPackage else sourcePackage;
|
if isWheel then wheelPackage else sourcePackage;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue