From e1ba82b92b347939d25168867d9ed5021cc348f5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 09:35:33 +0200 Subject: [PATCH 1/2] python312Packages.bluetooth-sensor-state-data: 1.6.2 -> 1.7.0 Diff: https://github.com/Bluetooth-Devices/bluetooth-sensor-state-data/compare/v1.6.2...v1.7.0 --- .../python-modules/bluetooth-sensor-state-data/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix b/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix index c242f7d8d5cc..d0820d57fff7 100644 --- a/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix +++ b/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "bluetooth-sensor-state-data"; - version = "1.6.2"; + version = "1.7.0"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "Bluetooth-Devices"; repo = pname; rev = "v${version}"; - hash = "sha256-NC0l3wbQKz4MVM0kHbXBAUol74ir7V/JQgeYCVuyRs4="; + hash = "sha256-phiK+2tULBE78d1X/TsaT2kLRHxiCiuLMkaI7S6tqJ8="; }; nativeBuildInputs = [ poetry-core ]; From 980e77541f9d6b7468bfab23d4b811ea85841110 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 09:37:26 +0200 Subject: [PATCH 2/2] python312Packages.bluetooth-sensor-state-data: refactor --- .../bluetooth-sensor-state-data/default.nix | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix b/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix index d0820d57fff7..d3e3a36ff885 100644 --- a/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix +++ b/pkgs/development/python-modules/bluetooth-sensor-state-data/default.nix @@ -12,37 +12,38 @@ buildPythonPackage rec { pname = "bluetooth-sensor-state-data"; version = "1.7.0"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "Bluetooth-Devices"; - repo = pname; - rev = "v${version}"; + repo = "bluetooth-sensor-state-data"; + rev = "refs/tags/v${version}"; hash = "sha256-phiK+2tULBE78d1X/TsaT2kLRHxiCiuLMkaI7S6tqJ8="; }; - nativeBuildInputs = [ poetry-core ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" "" + ''; - propagatedBuildInputs = [ + build-system = [ poetry-core ]; + + dependencies = [ home-assistant-bluetooth sensor-state-data ]; nativeCheckInputs = [ pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" "" - ''; - pythonImportsCheck = [ "bluetooth_sensor_state_data" ]; meta = with lib; { description = "Models for storing and converting Bluetooth Sensor State Data"; homepage = "https://github.com/bluetooth-devices/bluetooth-sensor-state-data"; - license = with licenses; [ asl20 ]; + changelog = "https://github.com/Bluetooth-Devices/bluetooth-sensor-state-data/releases/tag/v${version}"; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }