depot/third_party/nixpkgs/pkgs/development/python-modules/bluetooth-adapters/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

77 lines
1.4 KiB
Nix

{ 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
}:
buildPythonPackage rec {
pname = "bluetooth-adapters";
version = "0.19.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "bluetooth-adapters";
rev = "refs/tags/v${version}";
hash = "sha256-hPs6YnmndJ2Z5RotcIRIYWPdvMyX56ul84l1Cs8kqH0=";
};
postPatch = ''
# Drop pytest arguments (coverage, ...)
sed -i '/addopts/d' pyproject.toml
'';
outputs = [
"out"
"doc"
];
build-system = [
myst-parser
poetry-core
sphinx-rtd-theme
sphinxHook
];
dependencies = [
aiohttp
aiooui
async-timeout
bleak
dbus-fast
mac-vendor-lookup
uart-devices
usb-devices
];
pythonImportsCheck = [
"bluetooth_adapters"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Tools to enumerate and find Bluetooth Adapters";
homepage = "https://github.com/Bluetooth-Devices/bluetooth-adapters";
changelog = "https://github.com/bluetooth-devices/bluetooth-adapters/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}