python311Packages.bleak-esphome: init at 0.2.0
Bleak backend of ESPHome https://github.com/bluetooth-devices/bleak-esphome
This commit is contained in:
parent
604365c826
commit
7d90dd0a2f
2 changed files with 62 additions and 0 deletions
60
pkgs/development/python-modules/bleak-esphome/default.nix
Normal file
60
pkgs/development/python-modules/bleak-esphome/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue