python3Packages.h2: fix tests

This commit is contained in:
Robert Schütz 2021-06-19 13:48:58 +02:00 committed by Martin Weinelt
parent d82deef709
commit 5df091e391

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi
{ lib, buildPythonPackage, fetchPypi, fetchpatch
, enum34, hpack, hyperframe, pytestCheckHook, hypothesis }:
buildPythonPackage rec {
@ -10,6 +10,15 @@ buildPythonPackage rec {
sha256 = "bb7ac7099dd67a857ed52c815a6192b6b1f5ba6b516237fc24a085341340593d";
};
patches = [
# Workaround issues with hypothesis 6.6
# https://github.com/python-hyper/h2/pull/1248
(fetchpatch {
url = "https://github.com/python-hyper/h2/commit/0646279dab694a89562846c810202ce2c0b49be3.patch";
sha256 = "1k0fsxwq9wbv15sc9ixls4qmxxghlzpflf3awm66ar9m2ikahiak";
})
];
propagatedBuildInputs = [ enum34 hpack hyperframe ];
checkInputs = [ pytestCheckHook hypothesis ];