6 # Mitmproxy requirements
33 # Additional check requirements
43 buildPythonPackage rec {
46 disabled = pythonOlder "3.8";
48 src = fetchFromGitHub {
51 rev = "refs/tags/v${version}";
52 sha256 = "sha256-nW/WfiY6uF67qNa95tvNvSv/alP2WmzTk34LEBma/04=";
56 # Fix onboarding addon tests failing with Flask >= v2.2
58 url = "https://github.com/mitmproxy/mitmproxy/commit/bc370276a19c1d1039e7a45ecdc23c362626c81a.patch";
59 hash = "sha256-Cp7RnYpZEuRhlWYOk8BOnAKBAUa7Vy296UmQi3/ufes=";
63 propagatedBuildInputs = [
104 # remove dependency constraints
105 sed 's/>=\([0-9]\.\?\)\+\( \?, \?<\([0-9]\.\?\)\+\)\?\( \?, \?!=\([0-9]\.\?\)\+\)\?//' -i setup.py
109 export HOME=$(mktemp -d)
113 # Tests require a git repository
115 # https://github.com/mitmproxy/mitmproxy/commit/36ebf11916704b3cdaf4be840eaafa66a115ac03
116 # Tests require terminal
118 "test_contentview_flowview"
120 # ValueError: Exceeds the limit (4300) for integer string conversion
121 "test_roundtrip_big_integer"
123 dontUsePytestXdist = true;
125 pythonImportsCheck = [ "mitmproxy" ];
128 description = "Man-in-the-middle proxy";
129 homepage = "https://mitmproxy.org/";
130 license = licenses.mit;
131 maintainers = with maintainers; [ kamilchm SuperSandro2000 ];