python3Packages.pygls: fix changelog url + use finalAttrs (#514571)

This commit is contained in:
Yohann Boniface
2026-04-29 22:00:38 +00:00
committed by GitHub
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -11,7 +11,7 @@
websockets,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pygls";
version = "1.3.1";
pyproject = true;
@@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "openlawlibrary";
repo = "pygls";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-AvrGoQ0Be1xKZhFn9XXYJpt5w+ITbDbj6NFZpaDPKao=";
};
@@ -62,8 +62,8 @@ buildPythonPackage rec {
broken = lib.versionAtLeast lsprotocol.version "2024";
description = "Pythonic generic implementation of the Language Server Protocol";
homepage = "https://github.com/openlawlibrary/pygls";
changelog = "https://github.com/openlawlibrary/pygls/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/openlawlibrary/pygls/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ kira-bruneau ];
};
}
})
@@ -13,7 +13,7 @@
nix-update-script,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pygls";
version = "2.1.1";
pyproject = true;
@@ -21,7 +21,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "openlawlibrary";
repo = "pygls";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-jxc1nKxfiRenb629a2WCZOzqyIOvT5XU4NrjmKPlDHk=";
};
@@ -65,8 +65,8 @@ buildPythonPackage rec {
meta = {
description = "Pythonic generic implementation of the Language Server Protocol";
homepage = "https://github.com/openlawlibrary/pygls";
changelog = "https://github.com/openlawlibrary/pygls/blob/${version}/CHANGELOG.md";
changelog = "https://github.com/openlawlibrary/pygls/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ kira-bruneau ];
};
}
})