python310Packages.roombapy: 1.6.7 -> 1.6.8

https://github.com/pschmitt/roombapy/releases/tag/1.6.8
This commit is contained in:
Martin Weinelt
2023-04-09 14:58:04 +02:00
parent ce5b6aba7c
commit bb2e919ee7
@@ -2,6 +2,7 @@
, amqtt
, buildPythonPackage
, fetchFromGitHub
, orjson
, paho-mqtt
, poetry-core
, pytest-asyncio
@@ -11,7 +12,7 @@
buildPythonPackage rec {
pname = "roombapy";
version = "1.6.7";
version = "1.6.8";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -20,14 +21,24 @@ buildPythonPackage rec {
owner = "pschmitt";
repo = "roombapy";
rev = "refs/tags/${version}";
hash = "sha256-cZoHUup3Znna4Za5twYyua3r03InapzU4c1aRrG6rpo=";
hash = "sha256-z9D9FiE+14/x05AFu3EpBYlAqpDPc5y6S+pLTsSO0cU=";
};
postPatch = ''
# hbmqtt was replaced by amqtt
substituteInPlace tests/test_roomba_integration.py \
--replace "from hbmqtt.broker import Broker" "from amqtt.broker import Broker"
substituteInPlace pyproject.toml \
--replace 'orjson = ">=3.8.7"' 'orjson = "*"'
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
orjson
paho-mqtt
];
@@ -37,12 +48,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
# hbmqtt was replaced by amqtt
substituteInPlace tests/test_roomba_integration.py \
--replace "from hbmqtt.broker import Broker" "from amqtt.broker import Broker"
'';
disabledTestPaths = [
# Requires network access
"tests/test_discovery.py"