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
|
{ lib
|
||||||
|
, bleak
|
||||||
, bleak-retry-connector
|
, bleak-retry-connector
|
||||||
, bluetooth-data-tools
|
, bluetooth-data-tools
|
||||||
, bluetooth-sensor-state-data
|
, bluetooth-sensor-state-data
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, cryptography
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, home-assistant-bluetooth
|
, home-assistant-bluetooth
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
@ -14,7 +16,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "xiaomi-ble";
|
pname = "xiaomi-ble";
|
||||||
version = "0.18.2";
|
version = "0.21.1";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
@ -23,17 +25,25 @@ buildPythonPackage rec {
|
||||||
owner = "Bluetooth-Devices";
|
owner = "Bluetooth-Devices";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
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 = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
bleak
|
||||||
bleak-retry-connector
|
bleak-retry-connector
|
||||||
bluetooth-data-tools
|
bluetooth-data-tools
|
||||||
bluetooth-sensor-state-data
|
bluetooth-sensor-state-data
|
||||||
|
cryptography
|
||||||
home-assistant-bluetooth
|
home-assistant-bluetooth
|
||||||
pycryptodomex
|
pycryptodomex
|
||||||
sensor-state-data
|
sensor-state-data
|
||||||
|
@ -43,11 +53,6 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace " --cov=xiaomi_ble --cov-report=term-missing:skip-covered" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"xiaomi_ble"
|
"xiaomi_ble"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue