diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/cryptography/cryptography-py27-warning.patch')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/cryptography/cryptography-py27-warning.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/cryptography/cryptography-py27-warning.patch b/nixpkgs/pkgs/development/python-modules/cryptography/cryptography-py27-warning.patch new file mode 100644 index 000000000000..8233af78a9de --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/cryptography/cryptography-py27-warning.patch @@ -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, +- ) |