From 03f28d01ac8d8ba7cba1c01ca9d641c07808d7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 11 Sep 2026 08:54:39 -0700 Subject: [PATCH] python3Packages.pyjwt: use finalAttrs (cherry picked from commit 409bbcafb75e03c239eea5364254d736ed1bac5b) --- pkgs/development/python-modules/pyjwt/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pyjwt/default.nix b/pkgs/development/python-modules/pyjwt/default.nix index ae8a5353a84d..d1267cf08628 100644 --- a/pkgs/development/python-modules/pyjwt/default.nix +++ b/pkgs/development/python-modules/pyjwt/default.nix @@ -11,7 +11,7 @@ oauthlib, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyjwt"; version = "2.14.0"; pyproject = true; @@ -19,7 +19,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "jpadilla"; repo = "pyjwt"; - tag = version; + tag = finalAttrs.version; hash = "sha256-SxJ2GQt1pfm8iAeTB2RmH2kliGeQ6whkM5nuesI1s/U="; }; @@ -38,7 +38,10 @@ buildPythonPackage rec { optional-dependencies.crypto = [ cryptography ]; - nativeCheckInputs = [ pytestCheckHook ] ++ (lib.concatAttrValues optional-dependencies); + nativeCheckInputs = [ + pytestCheckHook + ] + ++ (lib.concatAttrValues finalAttrs.passthru.optional-dependencies); disabledTests = [ # requires internet connection @@ -52,10 +55,10 @@ buildPythonPackage rec { }; meta = { - changelog = "https://github.com/jpadilla/pyjwt/blob/${version}/CHANGELOG.rst"; + changelog = "https://github.com/jpadilla/pyjwt/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; description = "JSON Web Token implementation in Python"; homepage = "https://github.com/jpadilla/pyjwt"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ prikhi ]; }; -} +})