From c59d50c27c4c866e1a9677f129e0e132dc281cd9 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Mon, 8 Jun 2026 14:11:15 -0700 Subject: [PATCH] python3Packages.python-aidot: only auto-update to stable versions --- .../python-modules/python-aidot/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/python-aidot/default.nix b/pkgs/development/python-modules/python-aidot/default.nix index 49932bc68d0e..edca63c16594 100644 --- a/pkgs/development/python-modules/python-aidot/default.nix +++ b/pkgs/development/python-modules/python-aidot/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + nix-update-script, setuptools, aiohttp, cryptography, @@ -30,6 +31,15 @@ buildPythonPackage (finalAttrs: { pythonImportsCheck = [ "aidot" ]; + # Upstream publishes pre-release tags (e.g. v0.3.54b4) alongside + # stable ones. Restrict automatic updates to stable versions only. + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^v([0-9.]+)$" + ]; + }; + meta = { description = "Control the WiFi lights of AIDOT in the local area network"; homepage = "https://github.com/AiDot-Development-Team/python-AiDot";