From ca7a8d536044be0bdd903da251ff7552c052f543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 12 May 2026 12:10:56 -0700 Subject: [PATCH] python3Packages.pendulum: use finalAttrs --- pkgs/development/python-modules/pendulum/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pendulum/default.nix b/pkgs/development/python-modules/pendulum/default.nix index da2332bc0220..662acb08c292 100644 --- a/pkgs/development/python-modules/pendulum/default.nix +++ b/pkgs/development/python-modules/pendulum/default.nix @@ -19,7 +19,7 @@ time-machine, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pendulum"; version = "3.2.0"; pyproject = true; @@ -27,14 +27,14 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "sdispater"; repo = "pendulum"; - tag = version; + tag = finalAttrs.version; hash = "sha256-zpBymeYhCy+yu6RPhOuN5xOVk6928hd3+oRsfiBPPuY="; }; cargoRoot = "rust"; cargoDeps = rustPlatform.fetchCargoVendor { - inherit pname version src; - sourceRoot = "${src.name}/rust"; + inherit (finalAttrs) pname version src; + sourceRoot = "${finalAttrs.src.name}/rust"; hash = "sha256-tC65lxI561ygOhBFujWzGk32XiQH6QB42nqboWSfQrg="; }; @@ -68,8 +68,8 @@ buildPythonPackage rec { meta = { description = "Python datetimes made easy"; homepage = "https://github.com/sdispater/pendulum"; - changelog = "https://github.com/sdispater/pendulum/blob/${src.tag}/CHANGELOG.md"; + changelog = "https://github.com/sdispater/pendulum/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})