Skip to content

Commit

Permalink
Merge pull request #265570 from amjoseph-nixpkgs/pyqtwebengine-take-d…
Browse files Browse the repository at this point in the history
…ifferent-python3
  • Loading branch information
Artturin authored Nov 6, 2023
2 parents eecc845 + 6adef3f commit 4f649d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/interpreters/python/passthrufun.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
overrides = packageOverrides;
python = self;
});
pythonOnBuildForHost_overridden =
pythonOnBuildForHost.override { inherit packageOverrides; self = pythonOnBuildForHost_overridden; };
in rec {
isPy27 = pythonVersion == "2.7";
isPy37 = pythonVersion == "3.7";
Expand All @@ -89,9 +91,10 @@ in rec {
pythonAtLeast = lib.versionAtLeast pythonVersion;
pythonOlder = lib.versionOlder pythonVersion;
inherit hasDistutilsCxxPatch;
# TODO: rename to pythonOnBuild
# TODO: deprecate
# Not done immediately because its likely used outside Nixpkgs.
pythonForBuild = pythonOnBuildForHost.override { inherit packageOverrides; self = pythonForBuild; };
pythonForBuild = pythonOnBuildForHost_overridden;
pythonOnBuildForHost = pythonOnBuildForHost_overridden;

tests = callPackage ./tests.nix {
python = self;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/pyqtwebengine/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ in buildPythonPackage (rec {
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
sip
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
buildPackages.python3Packages.sip
python.pythonOnBuildForHost.pkgs.sip
] ++ [
qtbase
qtsvg
Expand Down

0 comments on commit 4f649d6

Please sign in to comment.