From 8a993aa36749c57f0e7f6589833d9c3a8a090bdf Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 1 Apr 2025 07:13:57 +0200 Subject: [PATCH] python3Packages.h2: 4.1.0 -> 4.2.0 This commit was automatically generated using update-python-libraries. --- .../development/python-modules/h2/default.nix | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/h2/default.nix b/pkgs/development/python-modules/h2/default.nix index 3666c7db9e64..eb3682768c0c 100644 --- a/pkgs/development/python-modules/h2/default.nix +++ b/pkgs/development/python-modules/h2/default.nix @@ -1,9 +1,8 @@ { lib, buildPythonPackage, - pythonOlder, - fetchPypi, - fetchpatch, + fetchFromGitHub, + setuptools, hpack, hyperframe, pytestCheckHook, @@ -12,26 +11,19 @@ buildPythonPackage rec { pname = "h2"; - version = "4.1.0"; - format = "setuptools"; + version = "4.2.0"; + pyproject = true; - disabled = pythonOlder "3.6"; - - src = fetchPypi { - inherit pname version; - hash = "sha256-qDrKCPvnqst5/seIycC6yTY0NWDtnsGLgqE6EsKNKrs="; + src = fetchFromGitHub { + owner = "python-hyper"; + repo = "h2"; + tag = "v${version}"; + hash = "sha256-rfCwMn2msiRoIvhsdK6hyp3BjDy5AGziX4Or0cb9bKc="; }; - patches = [ - # https://github.com/python-hyper/h2/pull/1274 - (fetchpatch { - name = "fix-tests-in-python-3.11.patch"; - url = "https://github.com/python-hyper/h2/commit/8952c91606cd014720ccf202a25b5ee1fbed1591.patch"; - hash = "sha256-skAdAVHMZo1xJEqqKa6FOKPvoQQbGUgGsQjE11jIjtw="; - }) - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ hpack hyperframe ]; @@ -52,6 +44,7 @@ buildPythonPackage rec { ]; meta = with lib; { + changelog = "https://github.com/python-hyper/h2/blob/${src.tag}/CHANGELOG.rst"; description = "HTTP/2 State-Machine based protocol implementation"; homepage = "https://github.com/python-hyper/h2"; license = licenses.mit;