-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
python2Packages.cryptography*: pin at 2.9.2 #94852
Conversation
I am a bit confused with their error message. They say its no longer supported, yet it does function, not? So do they mean you need to use 2.x for Python 2?
|
@FRidh I believe the wheel will build and install, but where I noticed it was the |
cryptography 3.0 supports Python 2.7, it's emitting a warning, but functions in full. |
Yes, but it can be propagated as an exception, which in some cases causes failures:
|
Right, that is pyca/cryptography#5335. It's really annoying! Upstream did suggest how to handle it, by setting a certain value in case of pytest. pyca/cryptography#5346. I think the best approach is to patch it out. |
Although the "proper" thing would be to go to each individual package that's failing, and filter the warnings as upstream prescribes, but this is more time and effort that I would rather not spend on python2. Since python2 is in a "deprecated" state, I think having a deprecated package is alright for now, until python2 is removed completely (when it eventually becomes a severe security threat, or unreasonable maintenance burden) |
evaluation for fixed packages https://hydra.nixos.org/eval/1605494 |
Motivation for this change
cryptography dropped support for python in version 3.0
I consider this a crucial package, and will make an exception to "not worry about python2 breakages" for it.
Noticed it was broken in: #94851
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)