Files
nixpkgs/pkgs/development/python-modules/bluetooth-auto-recovery/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

59 lines
1.2 KiB
Nix

{
lib,
async-timeout,
bluetooth-adapters,
btsocket,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyric,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
usb-devices,
}:
buildPythonPackage rec {
pname = "bluetooth-auto-recovery";
version = "1.5.3";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "bluetooth-auto-recovery";
tag = "v${version}";
hash = "sha256-xnEEq3NVScMbMjZWb4lI+kpy2zr6WlXx3XcBhzN1rZ4=";
};
build-system = [ poetry-core ];
dependencies = [
bluetooth-adapters
btsocket
pyric
usb-devices
]
++ lib.optionals (pythonOlder "3.11") [
async-timeout
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "bluetooth_auto_recovery" ];
meta = {
description = "Library for recovering Bluetooth adapters";
homepage = "https://github.com/Bluetooth-Devices/bluetooth-auto-recovery";
changelog = "https://github.com/Bluetooth-Devices/bluetooth-auto-recovery/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}