1{ lib 2, buildPythonPackage 3, certifi 4, cryptography 5, fetchFromGitHub 6, pylsqpack 7, pyopenssl 8, pytestCheckHook 9, pythonOlder 10, service-identity 11, setuptools 12, wheel 13}: 14 15buildPythonPackage rec { 16 pname = "aioquic-mitmproxy"; 17 version = "0.9.21.1"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "meitinger"; 24 repo = "aioquic_mitmproxy"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-eD3eICE9jS1jyqMgWwcv6w3gkR0EyGcKwgSXhasXNeA="; 27 }; 28 29 nativeBuildInputs = [ 30 setuptools 31 wheel 32 ]; 33 34 propagatedBuildInputs = [ 35 certifi 36 cryptography 37 pylsqpack 38 pyopenssl 39 service-identity 40 ]; 41 42 nativeCheckInputs = [ 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ 47 "aioquic" 48 ]; 49 50 meta = with lib; { 51 description = "QUIC and HTTP/3 implementation in Python"; 52 homepage = "https://github.com/meitinger/aioquic_mitmproxy"; 53 license = licenses.bsd3; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}