python3Packages.pygls: use nix-update-script to ignore pre-releases

This commit is contained in:
Kira Bruneau
2025-08-26 18:56:14 -04:00
parent c2791d5dd4
commit 2476aa8893
@@ -10,6 +10,7 @@
pythonOlder,
typeguard,
websockets,
nix-update-script,
}:
buildPythonPackage rec {
@@ -59,6 +60,14 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pygls" ];
passthru.updateScript = nix-update-script {
extraArgs = [
# Skips pre-releases
"--version-regex"
"^v([0-9.]+)$"
];
};
meta = with lib; {
description = "Pythonic generic implementation of the Language Server Protocol";
homepage = "https://github.com/openlawlibrary/pygls";