gimp2: remove opt-in python2 support#479956
Merged
doronbehar merged 1 commit intoNixOS:masterfrom Jan 14, 2026
Merged
Conversation
27 tasks
a30d9e8 to
bb076f4
Compare
13 tasks
5a8b52d to
f9f1a89
Compare
Member
Author
gepbird
approved these changes
Jan 14, 2026
Contributor
gepbird
left a comment
There was a problem hiding this comment.
Thanks, looks good!
Given that it has been broken for 10 months without anyone raising an issue and was superseded by gimp3, this sounds reasonable. (In the early release IIRC there were a few issues that kept people on gimp2, but I assume this is mostly resolved.)
In the enum34 PR there was one user who relied on this, but the advice was to maintain it outside of nixpkgs (and you provided a diff to get this feature working).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This option has likely not been working for a bit, as many dependencies are completely broken or missing to build
gimp2.override { withPython = true; }:scandir,setuptools_scmandtypingare needed, but they have been removed:Well this is my bad, i failed to see that they were actually used in
python3-modulespackages referenced withinpython2-modules😔enum34is required but alse has been removed, and a while ago:It seems i was not the only one to break python2 by inadvertance. It is particularly easy to miss, with
enum34andpathlib2inpython3-modules.wcwidthis overriding it's python3Packages brother, and does not work at all.this could be fixed by pinning it back to
0.2.12pathlib2is missingscandirandtypingbackports-functools-lru-cachehas an issue with a missingsetup.py, which can be fixed using the following:Complete patch for a version that builds
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.