From eb5939edd1c43cb4a7143ed284066a49b3e9b089 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 31 Dec 2023 10:45:05 +0100 Subject: [PATCH] python311Packages.sensorpush-ble: 1.5.5 -> 1.6.1 Diff: https://github.com/Bluetooth-Devices/sensorpush-ble/compare/refs/tags/v1.5.5..v1.6.1 Changelog: https://github.com/Bluetooth-Devices/sensorpush-ble/releases/tag/v1.6.1 --- .../python-modules/sensorpush-ble/default.nix | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/sensorpush-ble/default.nix b/pkgs/development/python-modules/sensorpush-ble/default.nix index d51f6d7d6447..bbeadee041c2 100644 --- a/pkgs/development/python-modules/sensorpush-ble/default.nix +++ b/pkgs/development/python-modules/sensorpush-ble/default.nix @@ -1,4 +1,5 @@ { lib +, bluetooth-data-tools , bluetooth-sensor-state-data , buildPythonPackage , fetchFromGitHub @@ -11,36 +12,37 @@ buildPythonPackage rec { pname = "sensorpush-ble"; - version = "1.5.5"; - format = "pyproject"; + version = "1.6.1"; + pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "Bluetooth-Devices"; - repo = pname; + repo = "sensorpush-ble"; rev = "refs/tags/v${version}"; - hash = "sha256-17Yzpbcy/r+GlkLktgghehfAEboZHMbB/Dze1no4I80="; + hash = "sha256-g0UFEkTPpKqx5+hrM+bM6iQrG8EaMcFN01JdHEVH9VQ="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=sensorpush_ble --cov-report=term-missing:skip-covered" "" + ''; + nativeBuildInputs = [ poetry-core ]; propagatedBuildInputs = [ + bluetooth-data-tools bluetooth-sensor-state-data home-assistant-bluetooth sensor-state-data ]; nativeCheckInputs = [ - pytestCheckHook - ]; + pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=sensorpush_ble --cov-report=term-missing:skip-covered" "" - ''; pythonImportsCheck = [ "sensorpush_ble"