From e1e5df688a60dcb6736a367619749e428178dded Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Mon, 11 Mar 2019 17:08:24 +0100 Subject: mitmproxy: Fix tests with pytest >= 4.x --- pkgs/tools/networking/mitmproxy/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pkgs') diff --git a/pkgs/tools/networking/mitmproxy/default.nix b/pkgs/tools/networking/mitmproxy/default.nix index 97d5d5129edb..ee331648e75f 100644 --- a/pkgs/tools/networking/mitmproxy/default.nix +++ b/pkgs/tools/networking/mitmproxy/default.nix @@ -32,6 +32,16 @@ buildPythonPackage rec { # We strip these bounds anyway excludes = [ "setup.py" ]; }) + (fetchpatch { + # Fix for newer pytest disallowing calling fixtures + # https://github.com/mitmproxy/mitmproxy/issues/3403 + # TODO: remove on next update + name = "dont-call-fixtures.patch"; + url = https://github.com/mitmproxy/mitmproxy/commit/ce28721458c8cc71de86513a5110676e9763041b.patch; + sha256 = "05pljr28lx7l1xgswqr9sz8dnhvc7npzh8xg2p9hignf159kd54d"; + # Irrelevant in nixpkgs + excludes = [ "setup.py" "setup.cfg" "release/docker/*" ]; + }) ]; postPatch = '' -- cgit 1.4.1