Merge pull request #318221 from fabaff/bthome-ble-bump

python312Packages.bthome-ble: 3.9.1 -> 3.9.3
This commit is contained in:
Fabian Affolter 2024-06-08 15:31:09 +02:00 committed by GitHub
commit 19a48432b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 55 deletions

View File

@ -14,7 +14,7 @@
buildPythonPackage rec {
pname = "bthome-ble";
version = "3.9.1";
version = "3.9.3";
pyproject = true;
disabled = pythonOlder "3.9";
@ -23,13 +23,9 @@ buildPythonPackage rec {
owner = "Bluetooth-Devices";
repo = "bthome-ble";
rev = "refs/tags/v${version}";
hash = "sha256-v3SzzbdWRJISuF1THHlrvci4b+H1Zw/0e5iSEB0Scvw=";
hash = "sha256-T6R3w8ZatgB73/rM5GLS9dBp3E1rvbqHo+QS6GHHI4w=";
};
patches = [
./habluetooth-3.0-compat.patch
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=bthome_ble --cov-report=term-missing:skip-covered" ""
@ -53,7 +49,7 @@ buildPythonPackage rec {
description = "Library for BThome BLE devices";
homepage = "https://github.com/Bluetooth-Devices/bthome-ble";
changelog = "https://github.com/bluetooth-devices/bthome-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,48 +0,0 @@
diff --git a/tests/test_parser_v1.py b/tests/test_parser_v1.py
index d717263..bb03d80 100644
--- a/tests/test_parser_v1.py
+++ b/tests/test_parser_v1.py
@@ -77,6 +77,7 @@ def bytes_to_service_info(
advertisement=None,
connectable=False,
time=ADVERTISEMENT_TIME,
+ tx_power=None,
)
@@ -96,6 +97,7 @@ def bytes_to_encrypted_service_info(
advertisement=None,
connectable=False,
time=ADVERTISEMENT_TIME,
+ tx_power=None,
)
@@ -1195,6 +1197,7 @@ def test_bthome_multiple_uuids(caplog):
advertisement=None,
connectable=False,
time=ADVERTISEMENT_TIME,
+ tx_power=None,
)
device = BTHomeBluetoothDeviceData()
diff --git a/tests/test_parser_v2.py b/tests/test_parser_v2.py
index 8fee31a..3ff8bc3 100644
--- a/tests/test_parser_v2.py
+++ b/tests/test_parser_v2.py
@@ -97,6 +97,7 @@ def bytes_to_service_info(
advertisement=None,
connectable=False,
time=time,
+ tx_power=None,
)
@@ -3171,6 +3172,7 @@ def test_bthome_multiple_uuids(caplog):
advertisement=None,
connectable=False,
time=ADVERTISEMENT_TIME,
+ tx_power=None,
)
device = BTHomeBluetoothDeviceData()