Files
nixpkgs/pkgs/development/python-modules/bluetooth-adapters/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

76 lines
1.3 KiB
Nix

{
lib,
aiohttp,
aiooui,
async-timeout,
bleak,
buildPythonPackage,
dbus-fast,
fetchFromGitHub,
mac-vendor-lookup,
myst-parser,
poetry-core,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
sphinx-rtd-theme,
sphinxHook,
uart-devices,
usb-devices,
}:
buildPythonPackage rec {
pname = "bluetooth-adapters";
version = "2.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = "bluetooth-adapters";
tag = "v${version}";
hash = "sha256-M9Me+fTaw//wGVd9Ss9iYB7RMgfkxJZz2lT60lHe3Vg=";
};
outputs = [
"out"
"doc"
];
build-system = [
poetry-core
];
nativeBuildInputs = [
myst-parser
sphinx-rtd-theme
sphinxHook
];
dependencies = [
aiohttp
aiooui
async-timeout
bleak
dbus-fast
mac-vendor-lookup
uart-devices
usb-devices
];
nativeCheckInputs = [
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "bluetooth_adapters" ];
meta = {
description = "Tools to enumerate and find Bluetooth Adapters";
homepage = "https://github.com/Bluetooth-Devices/bluetooth-adapters";
changelog = "https://github.com/Bluetooth-Devices/bluetooth-adapters/releases/tag/${src.tag}";
license = lib.licenses.asl20;
teams = [ lib.teams.home-assistant ];
};
}