python3Packages.python-aidot: only auto-update to stable versions (#529667)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user