From d5656236191580303cced83df778444a53842609 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Tue, 6 Sep 2022 22:15:40 +0200 Subject: [PATCH] python310Packages.mitmproxy: fix failing tests with Flask 2.2 --- .../python-modules/mitmproxy/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/mitmproxy/default.nix b/pkgs/development/python-modules/mitmproxy/default.nix index ed390ef33658..1b89d73864b0 100644 --- a/pkgs/development/python-modules/mitmproxy/default.nix +++ b/pkgs/development/python-modules/mitmproxy/default.nix @@ -1,6 +1,6 @@ { lib -, stdenv , fetchFromGitHub +, fetchpatch , buildPythonPackage , pythonOlder # Mitmproxy requirements @@ -20,7 +20,6 @@ , passlib , protobuf , publicsuffix2 -, pyasn1 , pyopenssl , pyparsing , pyperclip @@ -32,8 +31,6 @@ , wsproto , zstandard # Additional check requirements -, beautifulsoup4 -, glibcLocales , hypothesis , parver , pytest-asyncio @@ -55,6 +52,14 @@ buildPythonPackage rec { sha256 = "sha256-nW/WfiY6uF67qNa95tvNvSv/alP2WmzTk34LEBma/04="; }; + patches = [ + # Fix onboarding addon tests failing with Flask >= v2.2 + (fetchpatch { + url = "https://github.com/mitmproxy/mitmproxy/commit/bc370276a19c1d1039e7a45ecdc23c362626c81a.patch"; + hash = "sha256-Cp7RnYpZEuRhlWYOk8BOnAKBAUa7Vy296UmQi3/ufes="; + }) + ]; + propagatedBuildInputs = [ setuptools # setup.py