Skip to content

python3Packages.imageio: fix build, enable most tests#427800

Merged
philiptaron merged 1 commit intoNixOS:staging-nextfrom
philiptaron:fix-python3Packages.imageio
Jul 24, 2025
Merged

python3Packages.imageio: fix build, enable most tests#427800
philiptaron merged 1 commit intoNixOS:staging-nextfrom
philiptaron:fix-python3Packages.imageio

Conversation

@philiptaron
Copy link
Contributor

@philiptaron philiptaron commented Jul 23, 2025

With 6248978 (reported here), the new parenthesization logic exposes a coding defect in imageio where they do a string test vs. "not needs_internet" instead of something parsed.

Instead of fixing that, we can actually enable almost all of the tests in this module with a new patch which downloads the https://github.com/imageio/test_images repository and provides it to the test suite.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 6.topic: python Python is a high-level, general-purpose programming language. labels Jul 23, 2025
@philiptaron philiptaron force-pushed the fix-python3Packages.imageio branch from 69b62cb to 5247514 Compare July 23, 2025 17:08
With 6248978, the new parenthesization logic exposes a coding defect in `imageio` where they do a string test vs. `"not needs_internet"` instead of something parsed.

Instead of fixing that, we can actually enable almost all of the tests in this module with a command-line flag which points to a FOD of https://github.com/imageio/test_images repository.

There are a few more tests that need to be disabled as well; I opened a PR against imageio to fix these.

I also removed the `libgl-path.patch` in favor of a simple `--replace-fail`.
@philiptaron philiptaron force-pushed the fix-python3Packages.imageio branch from f5deb48 to ffa9e79 Compare July 24, 2025 14:55
@philiptaron philiptaron marked this pull request as ready for review July 24, 2025 14:55
@philiptaron
Copy link
Contributor Author

OK, I'm hands-off now. I think this is good to merge.

Copy link
Contributor

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

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

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 427800 --package python3Packages.imageio
Commit: ffa9e79f29257b23cfefafb7ff036438b9068e2c


x86_64-linux

✅ 2 packages built:
  • python3Packages.imageio
  • python3Packages.imageio.dist (python3Packages.imageio.dist.dist)

Thank you!

@nix-owners nix-owners bot requested a review from Luflosi July 24, 2025 15:01
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jul 24, 2025
@philiptaron philiptaron merged commit 2749371 into NixOS:staging-next Jul 24, 2025
24 of 26 checks passed
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: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 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