diff --git a/pkgs/development/python-modules/aioautomower/default.nix b/pkgs/development/python-modules/aioautomower/default.nix index 1767262c629f..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.2"; + version = "2.7.3"; pyproject = true; - disabled = pythonOlder "3.11"; - src = fetchFromGitHub { owner = "Thomas55555"; repo = "aioautomower"; - tag = "v${version}"; - hash = "sha256-fRfcdE76BJE7GHobZU7mYmmtnN4gBxNd5KofdE0Sm0Y="; + 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 ]; }; -} +})