2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
56 lines
984 B
Nix
56 lines
984 B
Nix
{ 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 ];
|
|
};
|
|
}
|