Skip to content

Python package fixes#311156

Closed
pyrox0 wants to merge 5 commits intoNixOS:masterfrom
pyrox0:nose-removal-1
Closed

Python package fixes#311156
pyrox0 wants to merge 5 commits intoNixOS:masterfrom
pyrox0:nose-removal-1

Conversation

@pyrox0
Copy link
Member

@pyrox0 pyrox0 commented May 12, 2024

Fixes a few packages that are broken on python 3.12, mainly related to their usage of nose, by disabling tests or otherwise migrating them to pytestCheckHook.
This also migrates binwalk to the supported fork at OSPG/binwalk, which also fixes a nose issue by it migrating to pytest.

Description of changes

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/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (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.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label May 12, 2024
@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label May 12, 2024
@ofborg ofborg bot requested review from bennofs, domenkozar, layus and risicle May 12, 2024 20:25
@ofborg ofborg bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels May 12, 2024
Copy link
Member

@layus layus left a comment

Choose a reason for hiding this comment

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

Looks okay to me. I do not understand why you have taken on you to change the with lib; from meta, but I am not one to bikeshed on these things.

Thanks for the work.
I will wait a bit to let others review it too. Do not hesitate to ping me if it is not merged withing the next few days.

@wegank wegank added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels May 13, 2024
Copy link
Member

@natsukium natsukium left a comment

Choose a reason for hiding this comment

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

I recommend submitting one PR per package next time.

In #311054, hexa says

On top of that, packages relying on nose have largely been unmaintained and might be dead leafs or using another test framework entirely. It is also to be expected that they need to be converted to the PEP517 builder in the process of fixing them.

This indicates that we need to change the packages significantly.

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 22, 2024
@pyrox0 pyrox0 force-pushed the nose-removal-1 branch 2 times, most recently from f679dd2 to bfca717 Compare May 25, 2024 23:01
@pyrox0 pyrox0 requested a review from natsukium May 28, 2024 05:25
@wegank wegank removed the 12.approvals: 1 This PR was reviewed and approved by one person. label May 29, 2024
@pyrox0
Copy link
Member Author

pyrox0 commented Jun 17, 2024

Updated to fix previous merge conflicts.

@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 17, 2024
@ofborg ofborg bot requested review from bcdarwin, jonringer and layus June 17, 2024 17:18
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 4, 2024
@pyrox0 pyrox0 force-pushed the nose-removal-1 branch 2 times, most recently from 9752915 to 4724e85 Compare July 9, 2024 05:23
@pyrox0
Copy link
Member Author

pyrox0 commented Jul 9, 2024

This previously had changes related to Capstone's Python bindings. Those have been dropped as out-of-scope for this PR, and can be resubmitted later once upstream fully drops distutils in a later release.

@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Jul 9, 2024
@amarshall
Copy link
Member

FYI binwalk got updated to fork in #326295

pyrox0 added 5 commits July 12, 2024 21:18
They require privilaged filesystem access(/proc), so they do not run in
Nix's sandbox.
Updates to the community supported fork of binwalk, and modernizes the
code to modern Nix Python packaging standards.
@pyrox0
Copy link
Member Author

pyrox0 commented Jul 13, 2024

merge conflict fixed.

@pyrox0
Copy link
Member Author

pyrox0 commented Jul 26, 2024

Closing since this has been superseded by multiple other PRs and it's no longer needed.

@pyrox0 pyrox0 closed this Jul 26, 2024
@pyrox0 pyrox0 deleted the nose-removal-1 branch August 4, 2024 23:21
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. 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants