mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, fetchpatch
|
|
, hpack
|
|
, hyperframe
|
|
, pytestCheckHook
|
|
, hypothesis
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "h2";
|
|
version = "4.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-qDrKCPvnqst5/seIycC6yTY0NWDtnsGLgqE6EsKNKrs=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
hpack
|
|
hyperframe
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
hypothesis
|
|
];
|
|
|
|
disabledTests = [
|
|
# timing sensitive
|
|
"test_changing_max_frame_size"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"h2.connection"
|
|
"h2.config"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "HTTP/2 State-Machine based protocol implementation";
|
|
homepage = "https://github.com/python-hyper/h2";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|