Files
nixpkgs/pkgs/development/python-modules/habluetooth/default.nix
T
Martin Weinelt 58886537e6 python3Packages.habluetooth: 3.49.0 -> 4.0.2
https://github.com/Bluetooth-Devices/habluetooth/blob/v4.0.2/CHANGELOG.md

This commit was automatically generated using update-python-libraries.
2025-08-09 18:59:45 +02:00

74 lines
1.4 KiB
Nix

{
lib,
async-interrupt,
bleak-retry-connector,
bleak,
bluetooth-adapters,
bluetooth-auto-recovery,
bluetooth-data-tools,
buildPythonPackage,
cython,
fetchFromGitHub,
freezegun,
poetry-core,
pytest-asyncio,
pytest-codspeed,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "habluetooth";
version = "4.0.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "habluetooth";
tag = "v${version}";
hash = "sha256-82eV76oY/exkHbhZt3OaifOoKxN2D6npstvfBDVgszw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'Cython>=3,<3.1' 'Cython'
'';
build-system = [
cython
poetry-core
setuptools
];
dependencies = [
async-interrupt
bleak
bleak-retry-connector
bluetooth-adapters
bluetooth-auto-recovery
bluetooth-data-tools
];
nativeCheckInputs = [
freezegun
pytest-asyncio
pytest-codspeed
pytest-cov-stub
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/${src.tag}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}