From 5df091e391cb7e0ea44192cb1be67a5c52de4e2b Mon Sep 17 00:00:00 2001 From: Robert Schütz Date: Sat, 19 Jun 2021 13:48:58 +0200 Subject: python3Packages.h2: fix tests --- pkgs/development/python-modules/h2/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pkgs/development/python-modules/h2') diff --git a/pkgs/development/python-modules/h2/default.nix b/pkgs/development/python-modules/h2/default.nix index ba681658e9a28..d52c84d03e00e 100644 --- a/pkgs/development/python-modules/h2/default.nix +++ b/pkgs/development/python-modules/h2/default.nix @@ -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 ]; -- cgit 1.4.1