From 2cf79b0f04c7321874cda76440db4fd2e9717de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 1 Aug 2026 20:17:29 -0700 Subject: [PATCH] python3Packages.hass-client: use pyprojectVersionPatchHook --- pkgs/development/python-modules/hass-client/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/hass-client/default.nix b/pkgs/development/python-modules/hass-client/default.nix index 9ec2b892b8ec..9d004223fd5d 100644 --- a/pkgs/development/python-modules/hass-client/default.nix +++ b/pkgs/development/python-modules/hass-client/default.nix @@ -7,6 +7,7 @@ fetchFromGitHub, lib, orjson, + pyprojectVersionPatchHook, pytest-asyncio, pytest-cov-stub, pytestCheckHook, @@ -25,10 +26,9 @@ buildPythonPackage rec { hash = "sha256-mrS3kuG/6ZE02B0Ua10AAAsgVBrEDRJxNfmIHT+EHWw="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "1.0.0" "${version}" - ''; + nativeBuildInputs = [ + pyprojectVersionPatchHook + ]; build-system = [ setuptools