python311Packages.bleak-esphome: init at 0.2.0

Bleak backend of ESPHome

https://github.com/bluetooth-devices/bleak-esphome
This commit is contained in:
Fabian Affolter 2023-12-13 23:30:52 +01:00
parent 604365c826
commit 7d90dd0a2f
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
{ lib
, aioesphomeapi
, bleak
, bluetooth-data-tools
, buildPythonPackage
, fetchFromGitHub
, habluetooth
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "bleak-esphome";
version = "0.2.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "bluetooth-devices";
repo = "bleak-esphome";
rev = "refs/tags/v${version}";
hash = "sha256-QtSkrX7xGaV/13FonQhYR4MpZxVwR8dAFCRvID0zSGo=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bleak_esphome --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aioesphomeapi
bleak
bluetooth-data-tools
habluetooth
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"bleak_esphome"
];
meta = with lib; {
description = "Bleak backend of ESPHome";
homepage = "https://github.com/bluetooth-devices/bleak-esphome";
changelog = "https://github.com/bluetooth-devices/bleak-esphome/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1496,6 +1496,8 @@ self: super: with self; {
bleak = callPackage ../development/python-modules/bleak { };
bleak-esphome = callPackage ../development/python-modules/bleak-esphome { };
bleak-retry-connector = callPackage ../development/python-modules/bleak-retry-connector { };
blebox-uniapi = callPackage ../development/python-modules/blebox-uniapi { };