diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-09-20 17:50:40 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-09-27 15:34:46 +0200 |
commit | 7c8215a8a18c0c53ba7fca57209fcbe5a0097d74 (patch) | |
tree | 3ef8df1bebbe79257eb4df884842308fca1c3077 /pkgs/development/python-modules/pybotvac | |
parent | 5e23ce7c47dc08e2f1c2ba26e8b76d8da17f34e2 (diff) |
python311Packages.pybotvac: make compatible with urllib3 2.0
Diffstat (limited to 'pkgs/development/python-modules/pybotvac')
-rw-r--r-- | pkgs/development/python-modules/pybotvac/default.nix | 4 | ||||
-rw-r--r-- | pkgs/development/python-modules/pybotvac/urllib3-2.0-compat.patch | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pybotvac/default.nix b/pkgs/development/python-modules/pybotvac/default.nix index 004572279abb0..a104e1e1aeb7b 100644 --- a/pkgs/development/python-modules/pybotvac/default.nix +++ b/pkgs/development/python-modules/pybotvac/default.nix @@ -19,6 +19,10 @@ buildPythonPackage rec { hash = "sha256-SXIs9AUXWm1H49MVDT4z6msNPaW5sAU20rcsWZ7ERdU="; }; + patches = [ + ./urllib3-2.0-compat.patch + ]; + propagatedBuildInputs = [ requests requests-oauthlib diff --git a/pkgs/development/python-modules/pybotvac/urllib3-2.0-compat.patch b/pkgs/development/python-modules/pybotvac/urllib3-2.0-compat.patch new file mode 100644 index 0000000000000..8b6ef4e91cc31 --- /dev/null +++ b/pkgs/development/python-modules/pybotvac/urllib3-2.0-compat.patch @@ -0,0 +1,21 @@ +diff --git a/pybotvac/robot.py b/pybotvac/robot.py +index f87546f..e9a61de 100644 +--- a/pybotvac/robot.py ++++ b/pybotvac/robot.py +@@ -6,7 +6,6 @@ from datetime import datetime, timezone + from email.utils import format_datetime + + import requests +-import urllib3 + from voluptuous import ( + ALLOW_EXTRA, + All, +@@ -21,8 +20,6 @@ from voluptuous import ( + from .exceptions import NeatoRobotException, NeatoUnsupportedDevice + from .neato import Neato # For default Vendor argument + +-# Disable warning due to SubjectAltNameWarning in certificate +-urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning) + + _LOGGER = logging.getLogger(__name__) + |