about summary refs log tree commit diff
path: root/pkgs/development/python-modules/h2
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-06-19 13:48:58 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2021-06-22 13:42:51 +0200
commit5df091e391cb7e0ea44192cb1be67a5c52de4e2b (patch)
tree4c921eeaa8941c1c369d3a500b37bb505fcccb96 /pkgs/development/python-modules/h2
parentd82deef709845d92b919e58d553b6b1e82f74df7 (diff)
python3Packages.h2: fix tests
Diffstat (limited to 'pkgs/development/python-modules/h2')
-rw-r--r--pkgs/development/python-modules/h2/default.nix11
1 files changed, 10 insertions, 1 deletions
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 ];