From d12094e1f35ed98c4efdbcb416d5288d84cba1e3 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Tue, 28 Apr 2026 18:31:17 -0400 Subject: [PATCH 1/2] python3Packages.pygls: use finalAttrs --- pkgs/development/python-modules/pygls/1.nix | 8 ++++---- pkgs/development/python-modules/pygls/default.nix | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pygls/1.nix b/pkgs/development/python-modules/pygls/1.nix index b08bb2b641c8..d414642ebd21 100644 --- a/pkgs/development/python-modules/pygls/1.nix +++ b/pkgs/development/python-modules/pygls/1.nix @@ -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.version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ kira-bruneau ]; }; -} +}) diff --git a/pkgs/development/python-modules/pygls/default.nix b/pkgs/development/python-modules/pygls/default.nix index cd0501310420..e10abbf920ed 100644 --- a/pkgs/development/python-modules/pygls/default.nix +++ b/pkgs/development/python-modules/pygls/default.nix @@ -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="; }; @@ -69,4 +69,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ kira-bruneau ]; }; -} +}) From 0fd07b7ab279cdfd1af494d71df705a954222b15 Mon Sep 17 00:00:00 2001 From: Kira Bruneau Date: Tue, 28 Apr 2026 18:32:28 -0400 Subject: [PATCH 2/2] python3Packages.pygls: fix changelog url --- pkgs/development/python-modules/pygls/1.nix | 2 +- pkgs/development/python-modules/pygls/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pygls/1.nix b/pkgs/development/python-modules/pygls/1.nix index d414642ebd21..734a09f7479f 100644 --- a/pkgs/development/python-modules/pygls/1.nix +++ b/pkgs/development/python-modules/pygls/1.nix @@ -62,7 +62,7 @@ buildPythonPackage (finalAttrs: { 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/${finalAttrs.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 ]; }; diff --git a/pkgs/development/python-modules/pygls/default.nix b/pkgs/development/python-modules/pygls/default.nix index e10abbf920ed..a6ec8564091a 100644 --- a/pkgs/development/python-modules/pygls/default.nix +++ b/pkgs/development/python-modules/pygls/default.nix @@ -65,7 +65,7 @@ buildPythonPackage (finalAttrs: { 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 ]; };