mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
async-interrupt,
|
|
bleak,
|
|
bleak-retry-connector,
|
|
bluetooth-adapters,
|
|
bluetooth-auto-recovery,
|
|
bluetooth-data-tools,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "habluetooth";
|
|
version = "3.6.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bluetooth-Devices";
|
|
repo = "habluetooth";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ypE/PvJV29+P389wLKZUErqLRvy935dAZYeap7n1z4M=";
|
|
};
|
|
|
|
build-system = [
|
|
cython
|
|
poetry-core
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
async-interrupt
|
|
bleak
|
|
bleak-retry-connector
|
|
bluetooth-adapters
|
|
bluetooth-auto-recovery
|
|
bluetooth-data-tools
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
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/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|