tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python311Packages.bleak: fix bluetoothctl substitution
Martin Weinelt
2 years ago
21317d93
862bdb64
+6
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
bleak
default.nix
+6
-6
pkgs/development/python-modules/bleak/default.nix
reviewed
···
25
25
hash = "sha256-T0im8zKyNLbskAEDeUUFS/daJtvttlHlttjscqP8iSk=";
26
26
};
27
27
28
28
+
postPatch = ''
29
29
+
# bleak checks BlueZ's version with a call to `bluetoothctl --version`
30
30
+
substituteInPlace bleak/backends/bluezdbus/version.py \
31
31
+
--replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
32
32
+
'';
33
33
+
28
34
nativeBuildInputs = [
29
35
poetry-core
30
36
];
···
39
45
pytest-asyncio
40
46
pytestCheckHook
41
47
];
42
42
-
43
43
-
postPatch = ''
44
44
-
# bleak checks BlueZ's version with a call to `bluetoothctl --version`
45
45
-
substituteInPlace bleak/backends/bluezdbus/__init__.py \
46
46
-
--replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
47
47
-
'';
48
48
49
49
pythonImportsCheck = [
50
50
"bleak"