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