python2Packages.cryptography: 2.9.2 -> 3.3.1 (#106792)

Fixes py2 build of pyOpenSSL:
https://github.com/NixOS/nixpkgs/issues/106275#issuecomment-743790876
This commit is contained in:
Orivej Desh
2020-12-14 16:31:26 +00:00
committed by GitHub
parent b37c00ab90
commit 6fa76f018b
6 changed files with 29 additions and 87 deletions

View File

@@ -0,0 +1,14 @@
Delete the warning that breaks tests of dependent projects.
--- a/src/cryptography/__init__.py
+++ b/src/cryptography/__init__.py
@@ -33,9 +32,0 @@ __all__ = [
-
-if sys.version_info[0] == 2:
- warnings.warn(
- "Python 2 is no longer supported by the Python core team. Support for "
- "it is now deprecated in cryptography, and will be removed in the "
- "next release.",
- CryptographyDeprecationWarning,
- stacklevel=2,
- )