depot/third_party/nixpkgs/pkgs/development/python-modules/bluetooth-adapters/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

67 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, async-timeout
, bleak
, dbus-fast
, myst-parser
, pytestCheckHook
, sphinxHook
, sphinx-rtd-theme
}:
buildPythonPackage rec {
pname = "bluetooth-adapters";
version = "0.8.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-K5EeDcGcjrZYQTbuYAzT7XhcAqpYW1w/jP5T0cOPsVU=";
};
postPatch = ''
# Drop pytest arguments (coverage, ...)
sed -i '/addopts/d' pyproject.toml
'';
outputs = [
"out"
"doc"
];
nativeBuildInputs = [
myst-parser
poetry-core
sphinx-rtd-theme
sphinxHook
];
propagatedBuildInputs = [
async-timeout
bleak
dbus-fast
];
pythonImportsCheck = [
"bluetooth_adapters"
];
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Tools to enumerate and find Bluetooth Adapters";
homepage = "https://bluetooth-adapters.readthedocs.io/";
changelog = "https://github.com/bluetooth-devices/bluetooth-adapters/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}