pythonPackages.bleak: 0.12.1 -> 0.13.0

This commit is contained in:
Alvar Penning 2021-11-08 10:56:56 +01:00
parent c910eaa827
commit 580e53479a

View file

@ -4,20 +4,18 @@
buildPythonPackage rec {
pname = "bleak";
version = "0.12.1";
version = "0.13.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1va9138igcgbpsnzgr90qwprmhr9h8lryqslc22jxra4r56a502a";
sha256 = "1vnwk36qfws9amqrdaynf63dcj2gzxm0ns1l75hrczmd5j2ic1zb";
};
postPatch = ''
# bleak checks BlueZ's version with a call to `bluetoothctl -v` twice
substituteInPlace bleak/__init__.py \
--replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
substituteInPlace bleak/backends/bluezdbus/client.py \
# bleak checks BlueZ's version with a call to `bluetoothctl --version`
substituteInPlace bleak/backends/bluezdbus/__init__.py \
--replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
'';