Merge pull request #303579 from fabaff/pybotvac-bump
python312Packages.pybotvac: 0.0.24 -> 0.0.25
This commit is contained in:
commit
ba8e828487
2 changed files with 21 additions and 38 deletions
|
@ -1,29 +1,35 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-oauthlib
|
||||
, voluptuous
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pythonOlder,
|
||||
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)"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
requests
|
||||
requests-oauthlib
|
||||
voluptuous
|
||||
|
@ -32,9 +38,7 @@ buildPythonPackage rec {
|
|||
# Module no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pybotvac"
|
||||
];
|
||||
pythonImportsCheck = [ "pybotvac" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for interacting with Neato Botvac Connected vacuum robots";
|
||||
|
|
|
@ -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__)
|
||||
|
Loading…
Reference in a new issue