about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/bleak/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-10-21 17:25:23 +0000
committerAlyssa Ross <hi@alyssa.is>2023-10-21 17:25:23 +0000
commit2a87a287685e127797106ffe684015a2371729fd (patch)
tree86f3180cc4eea397d9741a530593682404e94627 /nixpkgs/pkgs/development/python-modules/bleak/default.nix
parent53533fd13b70e6e78e9a63c7dad027b116335a2d (diff)
parent83b8726e5f6f85a28405c7772f75093fd9a399a3 (diff)
downloadnixlib-2a87a287685e127797106ffe684015a2371729fd.tar
nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.gz
nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.bz2
nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.lz
nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.xz
nixlib-2a87a287685e127797106ffe684015a2371729fd.tar.zst
nixlib-2a87a287685e127797106ffe684015a2371729fd.zip
Merge commit '83b8726e5f6f85a28405c7772f75093fd9a399a3'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/bleak/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/bleak/default.nix12
1 files changed, 6 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/bleak/default.nix b/nixpkgs/pkgs/development/python-modules/bleak/default.nix
index 61a069305d13..f53f614867ec 100644
--- a/nixpkgs/pkgs/development/python-modules/bleak/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/bleak/default.nix
@@ -25,6 +25,12 @@ buildPythonPackage rec {
     hash = "sha256-T0im8zKyNLbskAEDeUUFS/daJtvttlHlttjscqP8iSk=";
   };
 
+  postPatch = ''
+    # bleak checks BlueZ's version with a call to `bluetoothctl --version`
+    substituteInPlace bleak/backends/bluezdbus/version.py \
+      --replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
+  '';
+
   nativeBuildInputs = [
     poetry-core
   ];
@@ -40,12 +46,6 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
-  postPatch = ''
-    # bleak checks BlueZ's version with a call to `bluetoothctl --version`
-    substituteInPlace bleak/backends/bluezdbus/__init__.py \
-      --replace \"bluetoothctl\" \"${bluez}/bin/bluetoothctl\"
-  '';
-
   pythonImportsCheck = [
     "bleak"
   ];