Merge pull request #281297 from SuperSandro2000/mitmproxy-fix

This commit is contained in:
Sandro
2024-01-18 13:21:35 +01:00
committed by GitHub
4 changed files with 18 additions and 74 deletions
@@ -1,56 +0,0 @@
{ lib
, buildPythonPackage
, certifi
, cryptography
, fetchFromGitHub
, pylsqpack
, pyopenssl
, pytestCheckHook
, pythonOlder
, service-identity
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "aioquic-mitmproxy";
version = "0.9.21.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "meitinger";
repo = "aioquic_mitmproxy";
rev = "refs/tags/${version}";
hash = "sha256-eD3eICE9jS1jyqMgWwcv6w3gkR0EyGcKwgSXhasXNeA=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
certifi
cryptography
pylsqpack
pyopenssl
service-identity
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"aioquic"
];
meta = with lib; {
description = "QUIC and HTTP/3 implementation in Python";
homepage = "https://github.com/meitinger/aioquic_mitmproxy";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
@@ -3,8 +3,9 @@
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, pythonRelaxDepsHook
# Mitmproxy requirements
, aioquic-mitmproxy
, aioquic
, asgiref
, blinker
, brotli
@@ -56,8 +57,16 @@ buildPythonPackage rec {
hash = "sha256-BO7oQ4TVuZ4dCtROq2M24V6HVo0jzyBdQfb67dYA07U=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"aioquic"
];
propagatedBuildInputs = [
aioquic-mitmproxy
aioquic
asgiref
blinker
brotli
@@ -109,22 +118,14 @@ buildPythonPackage rec {
"test_get_version"
# https://github.com/mitmproxy/mitmproxy/commit/36ebf11916704b3cdaf4be840eaafa66a115ac03
# Tests require terminal
"test_integration"
"test_commands_exist"
"test_contentview_flowview"
"test_flowview"
# ValueError: Exceeds the limit (4300) for integer string conversion
"test_roundtrip_big_integer"
"test_wireguard"
"test_commands_exist"
"test_integration"
"test_statusbar"
# AssertionError: Playbook mismatch!
"test_untrusted_cert"
"test_mitmproxy_ca_is_untrusted"
];
disabledTestPaths = [
# teardown of half the tests broken
"test/mitmproxy/addons/test_onboarding.py"
# FileNotFoundError: [Errno 2] No such file or directory
# likely wireguard is also not working in the sandbox
"test_wireguard"
];
dontUsePytestXdist = true;
@@ -136,6 +137,6 @@ buildPythonPackage rec {
homepage = "https://mitmproxy.org/";
changelog = "https://github.com/mitmproxy/mitmproxy/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ kamilchm SuperSandro2000 ];
maintainers = with maintainers; [ SuperSandro2000 ];
};
}
+1
View File
@@ -39,6 +39,7 @@ mapAliases ({
aioh2 = throw "aioh2 has been removed because it is abandoned and broken."; # Added 2022-03-30
aionotify = throw "aionotify has been removed because is unmaintained and incompatible with python3.11."; # Added 2023-10-27
aiosenseme = throw "aiosenseme has been removed, because it does no longer work with the latest firmware and has become unmaintained"; # Added 2023-07-05
aioquic-mitmproxy = throw "aioquic-mitmproxy has been removed because mitmproxy no longer uses it"; # Added 2024-01-16
amazon_kclpy = amazon-kclpy; # added 2023-08-08
ansible-base = throw "ansible-base has been removed, because it is end of life"; # added 2022-03-30
ansible-doctor = throw "ansible-doctor has been promoted to a top-level attribute"; # Added 2023-05-16
-2
View File
@@ -349,8 +349,6 @@ self: super: with self; {
aioquic = callPackage ../development/python-modules/aioquic { };
aioquic-mitmproxy = callPackage ../development/python-modules/aioquic-mitmproxy { };
aiorecollect = callPackage ../development/python-modules/aiorecollect { };
aioredis = callPackage ../development/python-modules/aioredis { };