python311Packages.habluetooth: init at 0.5.1

Library for high availability Bluetooth

https://github.com/Bluetooth-Devices/habluetooth
This commit is contained in:
Fabian Affolter 2023-12-04 18:05:27 +01:00
parent ccdb9285bc
commit 385e6d0a14
2 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,68 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cython
, poetry-core
, setuptools
, wheel
, bleak
, pytestCheckHook
, bleak-retry-connector
, bluetooth-adapters
, bluetooth-auto-recovery
, bluetooth-data-tools
, home-assistant-bluetooth
, pythonOlder
}:
buildPythonPackage rec {
pname = "habluetooth";
version = "0.5.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "habluetooth";
rev = "refs/tags/v${version}";
hash = "sha256-olR900l/xJug5DeXb8CR0vQBzjzegdiCLCp6AIQu7Tg=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=habluetooth --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
cython
poetry-core
setuptools
wheel
];
propagatedBuildInputs = [
bleak
bleak-retry-connector
bluetooth-adapters
bluetooth-auto-recovery
bluetooth-data-tools
home-assistant-bluetooth
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"habluetooth"
];
meta = with lib; {
description = "Library for high availability Bluetooth";
homepage = "https://github.com/Bluetooth-Devices/habluetooth";
changelog = "https://github.com/Bluetooth-Devices/habluetooth/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -4951,6 +4951,8 @@ self: super: with self; {
habanero = callPackage ../development/python-modules/habanero { };
habluetooth = callPackage ../development/python-modules/habluetooth { };
habitipy = callPackage ../development/python-modules/habitipy { };
hachoir = callPackage ../development/python-modules/hachoir { };