calibre: build with py3 by default#97270
Merged
peterhoeg merged 2 commits intoNixOS:masterfrom Sep 7, 2020
Merged
Conversation
Member
Author
Member
Author
|
We probably want this in 20.09 @jonringer due to the py2 -> py3 move. |
jonringer
reviewed
Sep 6, 2020
pkgs/top-level/all-packages.nix
Outdated
|
|
||
| calibre-py3 = libsForQt5.callPackage ../applications/misc/calibre { pythonPackages = python3Packages; }; | ||
|
|
||
| calibre = calibre-py3; |
Contributor
There was a problem hiding this comment.
I believe it can make a difference with overlays
Suggested change
| calibre = calibre-py3; | |
| calibre = self.calibre-py3; |
Member
Author
There was a problem hiding this comment.
I'll take your word for it. Fixed! Bumped the version while at it. Works here.
Member
Author
There was a problem hiding this comment.
So grahamcofborg begs to differ:
nix-env did not evaluate cleanly:
["trace: It seems that you are using a patched Nixpkgs that references the self", "variable in pkgs/top-level/all-packages.nix. This variable was incorrectly", "named, so its usage needs attention. Please use pkgs for packages or super", "for functions.", "trace: It seems that you are using a patched Nixpkgs that references the self", "variable in pkgs/top-level/all-packages.nix. This variable was incorrectly", "named, so its usage needs attention. Please use pkgs for packages or super", "for functions.", "trace: It seems that you are using a patched Nixpkgs that references the self", "variable in pkgs/top-level/all-packages.nix. This variable was incorrectly", "named, so its usage needs attention. Please use pkgs for packages or super", "for functions.", "trace: It seems that you are using a patched Nixpkgs that references the self", "variable in pkgs/top-level/all-packages.nix. This variable was incorrectly", "named, so its usage needs attention. Please use pkgs for packages or super", "for functions."]
Contributor
There was a problem hiding this comment.
interesting, not what I was expecting, as this works in python packages.
31f6067 to
4b25b12
Compare
Contributor
|
Can no longer use calibre without reverting (Same error for both Repro: |
Contributor
|
See #98067 |
10 tasks
Member
Author
|
Should be fixed by #98197. |
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.
Motivation for this change
python 2 is dead and calibre has been supporting py3 for a while now.
In case people still need py2 due to external plugins not supporting py3
yet, we have calibre-py2.
Things done
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)