python312Packages.home-assistant-bluetooth: 1.12.0 -> 1.12.2
Diff: https://github.com/home-assistant-libs/home-assistant-bluetooth/compare/refs/tags/v1.12.0...v1.12.2 Changelog: https://github.com/home-assistant-libs/home-assistant-bluetooth/blob/v1.12.2/CHANGELOG.md
This commit is contained in:
parent
a0e47c9f2d
commit
c4113e6669
@ -19,7 +19,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "home-assistant-bluetooth";
|
||||
version = "1.12.0";
|
||||
version = "1.12.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.11";
|
||||
@ -28,34 +28,29 @@ buildPythonPackage rec {
|
||||
owner = "home-assistant-libs";
|
||||
repo = "home-assistant-bluetooth";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-KTaZ3xbZpBIN5zP73YdJW6QeCQThGdqejnfWwvL+0R8=";
|
||||
hash = "sha256-WAsgiOmYqmt/PCKp+vZA2To95YZAgnYCF8ysCn5N9nc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/home-assistant-libs/home-assistant-bluetooth/issues/38
|
||||
./habluetooth-3.0-compat.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# drop pytest parametrization (coverage, etc.)
|
||||
sed -i '/addopts/d' pyproject.toml
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
cython
|
||||
poetry-core
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ habluetooth ];
|
||||
|
||||
pythonImportsCheck = [ "home_assistant_bluetooth" ];
|
||||
dependencies = [ habluetooth ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
bleak
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "home_assistant_bluetooth" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Basic bluetooth models used by Home Assistant";
|
||||
changelog = "https://github.com/home-assistant-libs/home-assistant-bluetooth/blob/v${version}/CHANGELOG.md";
|
||||
|
@ -1,50 +0,0 @@
|
||||
diff --git a/tests/test_models.py b/tests/test_models.py
|
||||
index ecfd70c..b8001f2 100644
|
||||
--- a/tests/test_models.py
|
||||
+++ b/tests/test_models.py
|
||||
@@ -88,6 +88,7 @@ def test_model_from_scanner():
|
||||
"service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
|
||||
"source": "local",
|
||||
"time": now,
|
||||
+ "tx_power": -127,
|
||||
}
|
||||
|
||||
|
||||
@@ -109,6 +110,7 @@ def test_construct_service_info_bleak():
|
||||
advertisement=switchbot_adv,
|
||||
connectable=False,
|
||||
time=now,
|
||||
+ tx_power=None,
|
||||
)
|
||||
|
||||
assert service_info.service_uuids == ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
|
||||
@@ -132,6 +134,7 @@ def test_construct_service_info_bleak():
|
||||
"service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
|
||||
"source": "local",
|
||||
"time": now,
|
||||
+ "tx_power": None,
|
||||
}
|
||||
|
||||
|
||||
@@ -165,6 +168,7 @@ def test_from_device_and_advertisement_data():
|
||||
"service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
|
||||
"source": "local",
|
||||
"time": now_monotonic,
|
||||
+ "tx_power": -127,
|
||||
}
|
||||
|
||||
|
||||
@@ -200,6 +204,7 @@ def test_pyobjc_compat():
|
||||
advertisement=switchbot_adv,
|
||||
connectable=False,
|
||||
time=now,
|
||||
+ tx_power=None,
|
||||
)
|
||||
|
||||
assert service_info.service_uuids == ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
|
||||
@@ -223,4 +228,5 @@ def test_pyobjc_compat():
|
||||
"service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
|
||||
"source": "local",
|
||||
"time": now,
|
||||
+ "tx_power": None,
|
||||
}
|
Loading…
Reference in New Issue
Block a user