Merge pull request #250818 from fabaff/mitmproxy2swagger-bump

python311Packages.urwid-mitmproxy: init at 2.1.2.1, python311Packages.aioquic-mitmproxy: init at 0.9.20.3
This commit is contained in:
OTABI Tomoya
2023-08-23 11:46:23 +09:00
committed by GitHub
3 changed files with 92 additions and 0 deletions
@@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, certifi
, cryptography
, fetchFromGitHub
, pylsqpack
, pyopenssl
, pytestCheckHook
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "aioquic-mitmproxy";
version = "0.9.20.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "meitinger";
repo = "aioquic_mitmproxy";
rev = "refs/tags/${version}";
hash = "sha256-VcIbtrcA0dBEE52ZD90IbXoh6L3wDUbr2kFJikts6+w=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
certifi
cryptography
pylsqpack
pyopenssl
];
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 ];
};
}
@@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, glibcLocales
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "urwid-mitmproxy";
version = "2.1.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mitmproxy";
repo = "urwid-mitmproxy";
rev = "refs/tags/${version}";
hash = "sha256-93AauYWbrG/2smAhbNKGE0twGJZ2u9gBetlXGCpciH8=";
};
pythonImportsCheck = [
"urwid"
];
# Tests which assert on strings don't decode results correctly, see urwid
doCheck = false;
meta = with lib; {
description = "Urwid fork used by mitmproxy";
homepage = "https://github.com/mitmproxy/urwid-mitmproxy";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ fab ];
};
}
+4
View File
@@ -316,6 +316,8 @@ 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 { };
@@ -13318,6 +13320,8 @@ self: super: with self; {
urwid-readline = callPackage ../development/python-modules/urwid-readline { };
urwid-mitmproxy = callPackage ../development/python-modules/urwid-mitmproxy { };
usb-devices = callPackage ../development/python-modules/usb-devices { };
usbrelay-py = callPackage ../os-specific/linux/usbrelay/python.nix { };