From 0c9c221a06a1b989c9175fbb9c628a0136e82fec Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 Nov 2023 18:25:03 +0100 Subject: [PATCH] python311Packages.mitmproxy: 10.1.1 -> 10.1.5 Diff: https://github.com/mitmproxy/mitmproxy/compare/refs/tags/10.1.1...10.1.5 Changelog: https://github.com/mitmproxy/mitmproxy/blob/10.1.5/CHANGELOG.md --- .../python-modules/mitmproxy/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/mitmproxy/default.nix b/pkgs/development/python-modules/mitmproxy/default.nix index 566c1e0b3298..e8c941fb950a 100644 --- a/pkgs/development/python-modules/mitmproxy/default.nix +++ b/pkgs/development/python-modules/mitmproxy/default.nix @@ -1,8 +1,8 @@ { lib +, stdenv , fetchFromGitHub , buildPythonPackage , pythonOlder -, stdenv # Mitmproxy requirements , aioquic , asgiref @@ -44,19 +44,19 @@ buildPythonPackage rec { pname = "mitmproxy"; - version = "10.1.1"; - disabled = pythonOlder "3.9"; + version = "10.1.5"; pyproject = true; + disabled = pythonOlder "3.9"; + src = fetchFromGitHub { owner = "mitmproxy"; repo = "mitmproxy"; rev = "refs/tags/${version}"; - hash = "sha256-/ouMj7UVowvzwjOuusgVfXjvjNPKpuJUuoJf6Sl9P44="; + hash = "sha256-WtZ5KPkTjYMCjrghVcihxuQ2cS88OOCbMYHfqzeo4qQ="; }; propagatedBuildInputs = [ - setuptools aioquic asgiref blinker @@ -73,11 +73,12 @@ buildPythonPackage rec { msgpack passlib protobuf - pyopenssl publicsuffix2 + pyopenssl pyparsing pyperclip ruamel-yaml + setuptools sortedcontainers tornado urwid @@ -113,10 +114,12 @@ buildPythonPackage rec { "test_flowview" # ValueError: Exceeds the limit (4300) for integer string conversion "test_roundtrip_big_integer" - "test_wireguard" "test_commands_exist" "test_statusbar" + # AssertionError: Playbook mismatch! + "test_untrusted_cert" + "test_mitmproxy_ca_is_untrusted" ]; disabledTestPaths = [ @@ -131,6 +134,7 @@ buildPythonPackage rec { meta = with lib; { description = "Man-in-the-middle proxy"; homepage = "https://mitmproxy.org/"; + changelog = "https://github.com/mitmproxy/mitmproxy/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ kamilchm SuperSandro2000 ]; };