python3Packages.jh2: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-04-06 14:17:52 +02:00
committed by GitHub
parent 35820d5dff
commit fbf3213dcf
@@ -9,7 +9,7 @@
rustPlatform,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "jh2";
version = "5.0.11";
pyproject = true;
@@ -17,13 +17,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "jawah";
repo = "h2";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-k69U8O0c7z1TJASOWcndZA/LYTsX7nVfelhaS6FlN5g=";
fetchSubmodules = true;
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
inherit (finalAttrs) pname version src;
hash = "sha256-ELZD3CIAv70DGoCgdK8T2yVLtib9ylSvoZPFOge6nIQ=";
};
@@ -44,11 +44,11 @@ buildPythonPackage rec {
meta = {
description = "HTTP/2 State-Machine based protocol implementation";
homepage = "https://github.com/jawah/h2";
changelog = "https://github.com/jawah/h2/blob/${src.rev}/CHANGELOG.rst";
changelog = "https://github.com/jawah/h2/blob/${finalAttrs.src.rev}/CHANGELOG.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
fab
techknowlogick
];
};
}
})