python311Packages.pybotvac: make compatible with urllib3 2.0

This commit is contained in:
Martin Weinelt
2023-09-27 15:34:46 +02:00
parent 5e23ce7c47
commit 7c8215a8a1
2 changed files with 25 additions and 0 deletions
@@ -19,6 +19,10 @@ buildPythonPackage rec {
hash = "sha256-SXIs9AUXWm1H49MVDT4z6msNPaW5sAU20rcsWZ7ERdU=";
};
patches = [
./urllib3-2.0-compat.patch
];
propagatedBuildInputs = [
requests
requests-oauthlib
@@ -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__)