From 4047fe61aa7ef45e3d50000168754b5f5ca497f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 30 Apr 2025 12:53:50 +0200 Subject: [PATCH] mitmproxy: 11.1.3 -> 12.0.0 Changelog: https://github.com/mitmproxy/mitmproxy/blob/v12.0.0/CHANGELOG.md --- .../python-modules/mitmproxy/default.nix | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/mitmproxy/default.nix b/pkgs/development/python-modules/mitmproxy/default.nix index cc2a56ea2544..78cd23d01250 100644 --- a/pkgs/development/python-modules/mitmproxy/default.nix +++ b/pkgs/development/python-modules/mitmproxy/default.nix @@ -1,20 +1,21 @@ { lib, - fetchFromGitHub, - buildPythonPackage, - # Mitmproxy requirements aioquic, argon2-cffi, asgiref, brotli, + buildPythonPackage, certifi, cryptography, + fetchFromGitHub, flask, h11, h2, hyperframe, + hypothesis, kaitaistruct, ldap3, + mitmproxy-linux, mitmproxy-rs, msgpack, passlib, @@ -22,41 +23,38 @@ pyopenssl, pyparsing, pyperclip, - ruamel-yaml, - setuptools, - sortedcontainers, - tornado, - urwid, - wsproto, - zstandard, - # Additional check requirements - hypothesis, pytest-asyncio, pytest-timeout, pytest-xdist, pytestCheckHook, requests, + ruamel-yaml, + setuptools, + sortedcontainers, + stdenv, + tornado, + urwid, + wsproto, + zstandard, }: buildPythonPackage rec { pname = "mitmproxy"; - version = "11.1.3"; + version = "12.0.0"; pyproject = true; src = fetchFromGitHub { owner = "mitmproxy"; repo = "mitmproxy"; tag = "v${version}"; - hash = "sha256-gTeXxNQWVMQYiGdIyy7SS6JcuYG16KLnjxBBdjhi+lE="; + hash = "sha256-2dEoPgT8g59sLRV5gMPo7XII0XjTrn2cVdYetxDj/V0="; }; pythonRelaxDeps = [ + "h11" # https://github.com/NixOS/nixpkgs/pull/399393 "h2" "passlib" - "protobuf" - "pyparsing" - "ruamel.yaml" - "urwid" + "typing-extensions" # https://github.com/NixOS/nixpkgs/pull/397082 ]; build-system = [ setuptools ];