567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
69 lines
1.3 KiB
Nix
69 lines
1.3 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 = "5.8.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bluetooth-Devices";
|
|
repo = "habluetooth";
|
|
tag = "v${version}";
|
|
hash = "sha256-VbD4fAOZtDtPIGGYb3ISP7c9YLBXAXeOIICqf9Pm5ho=";
|
|
};
|
|
|
|
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 = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|