mitmproxy: Fix tests with pytest >= 4.x

This commit is contained in:
Sarah Brofeldt 2019-03-11 17:08:24 +01:00
parent 3df55b80bb
commit e1e5df688a

View File

@ -32,6 +32,16 @@ buildPythonPackage rec {
# We strip these bounds anyway # We strip these bounds anyway
excludes = [ "setup.py" ]; 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 = '' postPatch = ''