From 8c9c01060637d6153333523526e350fd97c037ba Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 10:06:08 +0200 Subject: [PATCH 1/3] python312Packages.xiaomi-ble: 0.28.0 -> 0.29.0 Diff: https://github.com/Bluetooth-Devices/xiaomi-ble/compare/refs/tags/v0.28.0...v0.29.0 Changelog: https://github.com/Bluetooth-Devices/xiaomi-ble/releases/tag/v0.29.0 --- pkgs/development/python-modules/xiaomi-ble/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xiaomi-ble/default.nix b/pkgs/development/python-modules/xiaomi-ble/default.nix index 221346d2c76a..f1029709efb4 100644 --- a/pkgs/development/python-modules/xiaomi-ble/default.nix +++ b/pkgs/development/python-modules/xiaomi-ble/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "xiaomi-ble"; - version = "0.28.0"; + version = "0.29.0"; pyproject = true; disabled = pythonOlder "3.9"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "Bluetooth-Devices"; repo = "xiaomi-ble"; rev = "refs/tags/v${version}"; - hash = "sha256-Va/fzGDjBR/h1lUN47AixZnDYzEPNXQKTVXILKayhBc="; + hash = "sha256-+zMjnLUzI8ctucvxXts7V4lN4Gp0ZQtArhpXUCBvhF0="; }; postPatch = '' From 4fee1280bf009827d4cbcf8b30ead9708736ddb6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 10:08:27 +0200 Subject: [PATCH 2/3] python312Packages.xiaomi-ble: refactor --- pkgs/development/python-modules/xiaomi-ble/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/xiaomi-ble/default.nix b/pkgs/development/python-modules/xiaomi-ble/default.nix index f1029709efb4..36f071f355d0 100644 --- a/pkgs/development/python-modules/xiaomi-ble/default.nix +++ b/pkgs/development/python-modules/xiaomi-ble/default.nix @@ -36,6 +36,9 @@ buildPythonPackage rec { build-system = [ poetry-core + ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; From f26d0eb6ff38d46be9b654ce498384abb577561a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 May 2024 10:08:45 +0200 Subject: [PATCH 3/3] python312Packages.xiaomi-ble: format with nixfmt --- .../python-modules/xiaomi-ble/default.nix | 51 ++++++++----------- 1 file changed, 21 insertions(+), 30 deletions(-) diff --git a/pkgs/development/python-modules/xiaomi-ble/default.nix b/pkgs/development/python-modules/xiaomi-ble/default.nix index 36f071f355d0..02f6bc25c86a 100644 --- a/pkgs/development/python-modules/xiaomi-ble/default.nix +++ b/pkgs/development/python-modules/xiaomi-ble/default.nix @@ -1,18 +1,19 @@ -{ lib -, bleak -, bleak-retry-connector -, bluetooth-data-tools -, bluetooth-sensor-state-data -, buildPythonPackage -, cryptography -, fetchFromGitHub -, home-assistant-bluetooth -, poetry-core -, pycryptodomex -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, sensor-state-data +{ + lib, + bleak, + bleak-retry-connector, + bluetooth-data-tools, + bluetooth-sensor-state-data, + buildPythonPackage, + cryptography, + fetchFromGitHub, + home-assistant-bluetooth, + poetry-core, + pycryptodomex, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + sensor-state-data, }: buildPythonPackage rec { @@ -34,17 +35,11 @@ buildPythonPackage rec { --replace-fail " --cov=xiaomi_ble --cov-report=term-missing:skip-covered" "" ''; - build-system = [ - poetry-core - ]; + build-system = [ poetry-core ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "pycryptodomex" - ]; + pythonRelaxDeps = [ "pycryptodomex" ]; dependencies = [ bleak @@ -57,13 +52,9 @@ buildPythonPackage rec { sensor-state-data ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "xiaomi_ble" - ]; + pythonImportsCheck = [ "xiaomi_ble" ]; meta = with lib; { description = "Library for Xiaomi BLE devices";