New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pantalaimon: 0.6.3 -> 0.6.4; pythonPackages.matrix-nio: 0.12.0 -> 0.14.1 #91968
Conversation
|
pkgs/applications/networking/instant-messengers/pantalaimon/default.nix
Outdated
Show resolved
Hide resolved
@@ -51,6 +51,12 @@ buildPythonApplication rec { | |||
# darwin has difficulty communicating with server, fails some integration tests | |||
doCheck = !stdenv.isDarwin; | |||
|
|||
postPatch = '' | |||
set -x | |||
sed -i 's/"matrix-nio\[e2e\] <= 0.14"/"matrix-nio[e2e] >= 0.14, < 0.15"/' setup.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"future-proof"
tests will make sure the package is still valid
sed -i 's/"matrix-nio\[e2e\] <= 0.14"/"matrix-nio[e2e] >= 0.14, < 0.15"/' setup.py | |
sed -i 's/"matrix-nio\[e2e\] <= 0.14"/"matrix-nio[e2e]"/' setup.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, that feels a bit aggressive to me. Imagine: matrix-nio changes some security aspect of how it's used in a subtle, non-breaking way, and mentions it in release notes. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm in favor of removing upper bounds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imagine: matrix-nio changes some security aspect of how it's used in a subtle, non-breaking way, and mentions it in release notes. WDYT
Usually, only part of the API changes, and it might be a part that the downstream packages don't even use. That's why I usually prefer the "remove version bounds, but validate correctness" for python packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. I appreciate the feedback and will keep it in mind. That having been said, there's a new release and they clamped the way I had. I'll bump to this release and back out my fix, should be good for now.
It does not work:
|
looks like an issue with pycryptodome, not this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually it works outside of nix-shell. I tested it by sending a few messsages.
This rev (4befe00) passes |
Should be good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested pantalaimon and it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Result of nixpkgs-review pr 91968 1
Motivation for this change
Update
pantalaimon
andpythonPackages.matrix-nio
to latest stable.This is done in a single commit due to version compatibility. See: #84150 (comment)
This includes an extra commit relaxing
pantalaimon
's requirements onmatrix-nio
. This should be considered by reviewers.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)