Skip to content

[Backport release-25.05] buildPython*: bring back buildPython*.override#454656

Merged
MattSturgeon merged 1 commit intorelease-25.05from
backport-366593-to-release-25.05
Oct 24, 2025
Merged

[Backport release-25.05] buildPython*: bring back buildPython*.override#454656
MattSturgeon merged 1 commit intorelease-25.05from
backport-366593-to-release-25.05

Conversation

@nixpkgs-ci
Copy link
Contributor

@nixpkgs-ci nixpkgs-ci bot commented Oct 22, 2025

Bot-based backport to release-25.05, triggered by a label in #366593.

  • Before merging, ensure that this backport is acceptable for the release.
    • Even as a non-committer, if you find that it is not acceptable, leave a comment.

Fix `makeOverridablePythonPackage` in python-package-base.nix
and unshadow `buildPython*.override`.

This makes it possible to override the dependencies of buildPython*.
E.g., `buildPythonPackage.override { unzip = unzip-custom; }`
returns a derived version of `buildPythonPackage` with
the `unzip` package overridden with `unzip-custom`.

(cherry picked from commit cce0f3f)
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: python Python is a high-level, general-purpose programming language. 4.workflow: backport This targets a stable branch labels Oct 22, 2025
@nix-owners nix-owners bot requested review from mweinelt and natsukium October 22, 2025 19:50
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 22, 2025
@MattSturgeon MattSturgeon added this pull request to the merge queue Oct 24, 2025
Merged via the queue into release-25.05 with commit 2d83b85 Oct 24, 2025
32 of 35 checks passed
@MattSturgeon MattSturgeon deleted the backport-366593-to-release-25.05 branch October 24, 2025 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants