From 9fdfdd488a0e31f37bf68893f175202b49e9d111 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 1 Feb 2026 02:11:35 +0100 Subject: [PATCH] python313Packages.aiohue: modernize --- .../development/python-modules/aiohue/default.nix | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/aiohue/default.nix b/pkgs/development/python-modules/aiohue/default.nix index 2d8b4d5bf7b7..98d6e5a885c6 100644 --- a/pkgs/development/python-modules/aiohue/default.nix +++ b/pkgs/development/python-modules/aiohue/default.nix @@ -9,27 +9,24 @@ pytest-aiohttp, pytest-asyncio, pytest-cov-stub, - pythonOlder, setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aiohue"; version = "4.8.1"; pyproject = true; - disabled = pythonOlder "3.11"; - src = fetchFromGitHub { owner = "home-assistant-libs"; repo = "aiohue"; - tag = version; + tag = finalAttrs.version; hash = "sha256-Ex1ofLnpoO2oVQ3bc0Fy1kaSd1JGoL8DmnOgFRwz3D8="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace-fail 'version = "0.0.0"' 'version = "${version}"' + --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' ''; build-system = [ setuptools ]; @@ -60,8 +57,8 @@ buildPythonPackage rec { meta = { description = "Python package to talk to Philips Hue"; homepage = "https://github.com/home-assistant-libs/aiohue"; - changelog = "https://github.com/home-assistant-libs/aiohue/releases/tag/${version}"; - license = with lib.licenses; [ asl20 ]; + changelog = "https://github.com/home-assistant-libs/aiohue/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})