blob: 1ad12fffd50533d06dab250fc3b571f717770648 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ 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.7.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-c6blw0WD1V4bNZ5YaVjLbeCIug8l7PeKlrv+kzncK/s=";
};
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; {
changelog = "https://github.com/bluetooth-devices/bluetooth-adapters/blob/main/CHANGELOG.md";
description = "Tools to enumerate and find Bluetooth Adapters";
homepage = "https://bluetooth-adapters.readthedocs.io/";
license = licenses.asl20;
maintainers = teams.home-assistant.members;
};
}
|