about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aioquic-mitmproxy/default.nix
blob: 75ccd60727416c810771ca88447bec2b25971916 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{ 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 ];
  };
}