From ad05fc68c0dac1306ec95d030204dd9e442a24f9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 30 Dec 2023 09:51:09 +0100 Subject: [PATCH 1/2] python311Packages.thermobeacon-ble: 0.6.0 -> 0.6.2 Diff: https://github.com/bluetooth-devices/thermobeacon-ble/compare/refs/tags/v0.6.0...v0.6.2 Changelog: https://github.com/Bluetooth-Devices/thermobeacon-ble/releases/tag/v0.6.2 --- pkgs/development/python-modules/thermobeacon-ble/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/thermobeacon-ble/default.nix b/pkgs/development/python-modules/thermobeacon-ble/default.nix index 16fed5c05598..9514eab3daba 100644 --- a/pkgs/development/python-modules/thermobeacon-ble/default.nix +++ b/pkgs/development/python-modules/thermobeacon-ble/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "thermobeacon-ble"; - version = "0.6.0"; + version = "0.6.2"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "bluetooth-devices"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-WjABxtZ5td25K9QCbLHisT+DMd2Cv/nljwYwxY2br3A="; + hash = "sha256-Nmu9oS6zkCTqk/cf8+fqDFhVcG/2JuDDumGTCubeS5o="; }; nativeBuildInputs = [ From d054a1c2e981b07c0862cdaa884f22128ea80682 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 30 Dec 2023 09:52:00 +0100 Subject: [PATCH 2/2] python311Packages.thermobeacon-ble: refactor --- .../python-modules/thermobeacon-ble/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/thermobeacon-ble/default.nix b/pkgs/development/python-modules/thermobeacon-ble/default.nix index 9514eab3daba..38e6708e0e39 100644 --- a/pkgs/development/python-modules/thermobeacon-ble/default.nix +++ b/pkgs/development/python-modules/thermobeacon-ble/default.nix @@ -12,17 +12,22 @@ buildPythonPackage rec { pname = "thermobeacon-ble"; version = "0.6.2"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "bluetooth-devices"; - repo = pname; + repo = "thermobeacon-ble"; rev = "refs/tags/v${version}"; hash = "sha256-Nmu9oS6zkCTqk/cf8+fqDFhVcG/2JuDDumGTCubeS5o="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=thermobeacon_ble --cov-report=term-missing:skip-covered" "" + ''; + nativeBuildInputs = [ poetry-core ]; @@ -37,11 +42,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace " --cov=thermobeacon_ble --cov-report=term-missing:skip-covered" "" - ''; - pythonImportsCheck = [ "thermobeacon_ble" ];