python310Packages.xiaomi-ble: 0.18.2 -> 0.21.1
https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v0.19.0 https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v0.19.1 https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v0.20.0 https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v0.21.0 https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v0.21.1
This commit is contained in:
parent
6c1e7830e2
commit
5eb5aa5ba3
|
@ -1,8 +1,10 @@
|
|||
{ lib
|
||||
, bleak
|
||||
, bleak-retry-connector
|
||||
, bluetooth-data-tools
|
||||
, bluetooth-sensor-state-data
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, home-assistant-bluetooth
|
||||
, poetry-core
|
||||
|
@ -14,7 +16,7 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "xiaomi-ble";
|
||||
version = "0.18.2";
|
||||
version = "0.21.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
@ -23,17 +25,25 @@ buildPythonPackage rec {
|
|||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-cYmy7tUO3UcSNCpod4sa5R+9K6qB+w0Xtp3Fjbp6VTw=";
|
||||
hash = "sha256-5AzqsCWDgGhJ1EgJrbA8QHjP/Y14cIdSA0GKwZMrxX0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=xiaomi_ble --cov-report=term-missing:skip-covered" "" \
|
||||
--replace 'pycryptodomex = ">=3.18.0"' 'pycryptodomex = ">=3.17.0"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
bluetooth-data-tools
|
||||
bluetooth-sensor-state-data
|
||||
cryptography
|
||||
home-assistant-bluetooth
|
||||
pycryptodomex
|
||||
sensor-state-data
|
||||
|
@ -43,11 +53,6 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=xiaomi_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"xiaomi_ble"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue