2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aiooui,
|
|
|
|
async-timeout,
|
|
|
|
bleak,
|
|
|
|
buildPythonPackage,
|
|
|
|
dbus-fast,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mac-vendor-lookup,
|
|
|
|
myst-parser,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
sphinx-rtd-theme,
|
|
|
|
sphinxHook,
|
|
|
|
uart-devices,
|
|
|
|
usb-devices,
|
2022-08-12 12:06:08 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bluetooth-adapters";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.19.3";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Bluetooth-Devices";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "bluetooth-adapters";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-yRGlp3hykxdWnJde/VF6CwQgP6cupj1BCW7OmFNQAbM=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Drop pytest arguments (coverage, ...)
|
|
|
|
sed -i '/addopts/d' pyproject.toml
|
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"out"
|
|
|
|
"doc"
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2022-08-12 12:06:08 +00:00
|
|
|
myst-parser
|
|
|
|
poetry-core
|
|
|
|
sphinx-rtd-theme
|
|
|
|
sphinxHook
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-12-17 10:02:37 +00:00
|
|
|
aiohttp
|
2024-04-21 15:54:59 +00:00
|
|
|
aiooui
|
2022-08-12 12:06:08 +00:00
|
|
|
async-timeout
|
2022-10-06 18:32:54 +00:00
|
|
|
bleak
|
|
|
|
dbus-fast
|
2022-12-17 10:02:37 +00:00
|
|
|
mac-vendor-lookup
|
2024-05-15 15:35:15 +00:00
|
|
|
uart-devices
|
2022-12-17 10:02:37 +00:00
|
|
|
usb-devices
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "bluetooth_adapters" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tools to enumerate and find Bluetooth Adapters";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/Bluetooth-Devices/bluetooth-adapters";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/bluetooth-devices/bluetooth-adapters/blob/v${version}/CHANGELOG.md";
|
2022-08-12 12:06:08 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.home-assistant.members;
|
|
|
|
};
|
|
|
|
}
|