Skip to content

python3Packages.{libcomps,libdnf,libmodulemd}: remove overrideAttrs#421212

Open
LordGrimmauld wants to merge 3 commits intoNixOS:masterfrom
LordGrimmauld:overrideAttrs-python-packages
Open

python3Packages.{libcomps,libdnf,libmodulemd}: remove overrideAttrs#421212
LordGrimmauld wants to merge 3 commits intoNixOS:masterfrom
LordGrimmauld:overrideAttrs-python-packages

Conversation

@LordGrimmauld
Copy link
Contributor

overrideAttrs has some weird behavior, with some contributors working on reducing usage of it (see #421201).

The previous lib.pipe usage was all wonky, causing double-overrides and unreadable definitions.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 24.11 and 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 24.11 and 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@nix-owners nix-owners bot requested a review from natsukium June 30, 2025 10:56
@LordGrimmauld LordGrimmauld force-pushed the overrideAttrs-python-packages branch from 9b11642 to 6a19a33 Compare June 30, 2025 10:56
@LordGrimmauld LordGrimmauld changed the title Override attrs python packages python3Packages.{libcomps,libdnf,libmodulemd}: remove overrideAttrs Jun 30, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 6.topic: python Python is a high-level, general-purpose programming language. labels Jun 30, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
withPython ? true,

What's the point?

Copy link
Contributor Author

@LordGrimmauld LordGrimmauld Jun 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact the python package was only marked broken conditionally suggests there is people that used unsupported interpretters, e.g. by global override. I intended to give an escape hatch to avoid the meta.broken in cases where no suitable interpreter is available, kinda how the non-python-package never was marked broken before, independent of passed python3.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, probably not worth, removed.

@LordGrimmauld LordGrimmauld force-pushed the overrideAttrs-python-packages branch from 6a19a33 to d48981a Compare June 30, 2025 12:28
@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. and removed 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. labels Jun 30, 2025
@nixpkgs-ci nixpkgs-ci bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 28, 2025
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md labels Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants