Unverified Commit fbf3213d authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.jh2: migrate to finalAttrs

parent 35820d5d
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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
    ];
  };
}
})