From be1f6a337333de4cf993cf8f54c6736ef1244d5f Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 9 Apr 2026 12:52:36 +0700 Subject: [PATCH] python3Packages.certbot: use finalAttrs --- .../development/python-modules/certbot/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix index e0244147707f..797667c6d296 100644 --- a/pkgs/development/python-modules/certbot/default.nix +++ b/pkgs/development/python-modules/certbot/default.nix @@ -22,7 +22,7 @@ writeShellScriptBin, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "certbot"; version = "5.6.0"; pyproject = true; @@ -30,11 +30,11 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "certbot"; repo = "certbot"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-knaEk4bjC0cdnMiO4ENvaDm/i/3tn6ZOJPdyqJxLKOs="; }; - sourceRoot = "${src.name}/certbot"; + sourceRoot = "${finalAttrs.src.name}/certbot"; build-system = [ setuptools ]; @@ -87,9 +87,9 @@ buildPythonPackage rec { let pythonEnv = python.withPackages f; in - runCommand "certbot-with-plugins-${version}" + runCommand "certbot-with-plugins-${finalAttrs.version}" { - inherit pname version; + inherit (finalAttrs) pname version; } '' mkdir -p $out/bin @@ -99,11 +99,11 @@ buildPythonPackage rec { meta = { homepage = "https://github.com/certbot/certbot"; - changelog = "https://github.com/certbot/certbot/blob/${src.tag}/certbot/CHANGELOG.md"; + changelog = "https://github.com/certbot/certbot/blob/${finalAttrs.src.tag}/certbot/CHANGELOG.md"; description = "ACME client that can obtain certs and extensibly update server configurations"; platforms = lib.platforms.unix; mainProgram = "certbot"; maintainers = with lib.maintainers; [ miniharinn ]; license = with lib.licenses; [ asl20 ]; }; -} +})