python3Packages.certbot: use finalAttrs

This commit is contained in:
Harinn
2026-05-26 23:36:30 +09:00
parent c0495d494a
commit be1f6a3373
@@ -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 ];
};
}
})