www/py-jh2: Fix build after 75f9a60e97

* The 1.8.2 release of devel/py-maturin uses a updated version of the
  "pyproject-toml" crate which is stricter with regard to license
  metadata:

[...]
maturin failed
  Caused by: pyproject.toml at /wrkdirs/usr/ports/www/py-jh2/work-py311/jh2-5.0.7/pyproject.toml is invalid
  Caused by: TOML parse error at line 9, column 17
  |
9 | license-files = { paths = ["LICENSE"] }
  |                 ^^^^^^^^^^^^^^^^^^^^^^^
[...]

Approved by:	portmgr (build fix blanket)
This commit is contained in:
Kai Knoblich 2025-03-11 16:49:52 +01:00
parent 75f9a60e97
commit 8447b93f36

View file

@ -0,0 +1,19 @@
From: Ahmed TAHRI <tahri.ahmed@proton.me>
Date: Thu, 6 Mar 2025 08:21:41 +0100
Subject: [PATCH] :bug: fix project metadata around license
Obtained from:
https://github.com/jawah/h2/commit/3fe0d2c671354205832f2e028533e8b4a5962e92
--- pyproject.toml.orig 2025-02-16 19:03:23 UTC
+++ pyproject.toml
@@ -6,7 +6,7 @@ readme = "README.rst"
name = "jh2"
description = "HTTP/2 State-Machine based protocol implementation"
readme = "README.rst"
-license-files = { paths = ["LICENSE"] }
+license-files = ["LICENSE"]
license = "MIT"
keywords = ["http2", "hpack", "h2"]
authors = [