python312Packages.pybotvac: 0.0.24 -> 0.0.25

Changelog: https://github.com/stianaske/pybotvac/releases/tag/v0.0.25
This commit is contained in:
Fabian Affolter
2024-04-12 12:32:51 +02:00
parent 0d5113ba51
commit c96bb37f80
2 changed files with 13 additions and 27 deletions
@@ -5,25 +5,32 @@
, requests
, requests-oauthlib
, voluptuous
, setuptools
}:
buildPythonPackage rec {
pname = "pybotvac";
version = "0.0.24";
format = "setuptools";
version = "0.0.25";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-SXIs9AUXWm1H49MVDT4z6msNPaW5sAU20rcsWZ7ERdU=";
hash = "sha256-EvGBStEYgqFO9GMtxs1qtDixb4y2Ptom8xncRUv4ur4=";
};
patches = [
./urllib3-2.0-compat.patch
postPatch = ''
substituteInPlace pybotvac/robot.py \
--replace-fail "import urllib3" "" \
--replace-fail "urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning)" "# urllib3.disable_warnings(urllib3.exceptions.SubjectAltNameWarning)"
'';
build-system = [
setuptools
];
propagatedBuildInputs = [
dependencies = [
requests
requests-oauthlib
voluptuous
@@ -1,21 +0,0 @@
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__)