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";