mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
python311Packages.habluetooth: init at 0.5.1
Library for high availability Bluetooth https://github.com/Bluetooth-Devices/habluetooth
This commit is contained in:
parent
ccdb9285bc
commit
385e6d0a14
68
pkgs/development/python-modules/habluetooth/default.nix
Normal file
68
pkgs/development/python-modules/habluetooth/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user