From 16939eba9a911d2c1a07e3bc28f773365ec89382 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 3 May 2026 14:32:14 +0200 Subject: [PATCH] python3Packages.pyintesishome: modernize --- .../python-modules/pyintesishome/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyintesishome/default.nix b/pkgs/development/python-modules/pyintesishome/default.nix index 96ef3a1f9c93..afccc4be5f55 100644 --- a/pkgs/development/python-modules/pyintesishome/default.nix +++ b/pkgs/development/python-modules/pyintesishome/default.nix @@ -3,21 +3,24 @@ aiohttp, buildPythonPackage, fetchFromGitHub, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyintesishome"; version = "1.8.7"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "jnimmo"; repo = "pyIntesisHome"; - tag = version; + tag = finalAttrs.version; hash = "sha256-TwZAuu/mnChZwhZ5uGPiQ23curCiqTKWNgDrvwpgojc="; }; - propagatedBuildInputs = [ aiohttp ]; + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; # Project has no tests doCheck = false; @@ -27,8 +30,8 @@ buildPythonPackage rec { meta = { description = "Python interface for IntesisHome devices"; homepage = "https://github.com/jnimmo/pyIntesisHome"; - changelog = "https://github.com/jnimmo/pyIntesisHome/releases/tag/${version}"; - license = with lib.licenses; [ mit ]; + changelog = "https://github.com/jnimmo/pyIntesisHome/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})