From 5fcf025beced1a8d29774fe30fece495f08c2b63 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 8 Feb 2026 21:58:35 +0100 Subject: [PATCH] python313Packages.aioautomower: modernize --- .../python-modules/aioautomower/default.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/aioautomower/default.nix b/pkgs/development/python-modules/aioautomower/default.nix index 16ba3207b0cf..0fcbae274a7a 100644 --- a/pkgs/development/python-modules/aioautomower/default.nix +++ b/pkgs/development/python-modules/aioautomower/default.nix @@ -14,31 +14,28 @@ pytest-asyncio, pytest-cov-stub, pytestCheckHook, - pythonOlder, python-dateutil, syrupy, time-machine, tzlocal, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "aioautomower"; version = "2.7.3"; pyproject = true; - disabled = pythonOlder "3.11"; - src = fetchFromGitHub { owner = "Thomas55555"; repo = "aioautomower"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-O1z0dhVtKfIOr7TrXFiPElC11isD4aDDLmzc0+OX+B8="; }; postPatch = '' # Upstream doesn't set a version substituteInPlace pyproject.toml \ - --replace-fail 'version = "0.0.0"' 'version = "${version}"' + --replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"' ''; build-system = [ @@ -78,8 +75,8 @@ buildPythonPackage rec { meta = { description = "Module to communicate with the Automower Connect API"; homepage = "https://github.com/Thomas55555/aioautomower"; - changelog = "https://github.com/Thomas55555/aioautomower/releases/tag/${src.tag}"; + changelog = "https://github.com/Thomas55555/aioautomower/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})