python3Packages.h2: 4.1.0 -> 4.2.0

This commit was automatically generated using update-python-libraries.

Changed files
+12 -19
pkgs
development
python-modules
+12 -19
pkgs/development/python-modules/h2/default.nix
···
{
lib,
buildPythonPackage,
-
pythonOlder,
-
fetchPypi,
-
fetchpatch,
+
fetchFromGitHub,
+
setuptools,
hpack,
hyperframe,
pytestCheckHook,
···
buildPythonPackage rec {
pname = "h2";
-
version = "4.1.0";
-
format = "setuptools";
-
-
disabled = pythonOlder "3.6";
+
version = "4.2.0";
+
pyproject = true;
-
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
];
···
];
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;