overrides: Add override for wheel when building from source

This commit is contained in:
adisbladis 2021-01-30 12:48:31 +01:00
parent 649c50051f
commit 72a0e2749d
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -1269,13 +1269,15 @@ self: super:
format = "wheel";
};
# If "wheel" is built from source
sourcePackage = (
sourcePackage = ((
pkgs.python3.pkgs.override {
python = self.python;
}
).wheel.override {
inherit (self) buildPythonPackage bootstrapped-pip setuptools;
};
}).overrideAttrs (old: {
inherit (super.wheel) pname name version src;
});
in
if isWheel then wheelPackage else sourcePackage;