Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aioquic / default.nix
blob071fe70dd962ca44175359e99ba59aa2cd43750b
1 { lib
2 , buildPythonPackage
3 , certifi
4 , cryptography
5 , fetchPypi
6 , fetchpatch
7 , openssl
8 , pylsqpack
9 , pyopenssl
10 , pytestCheckHook
11 , pythonOlder
12 , setuptools
13 , service-identity
16 buildPythonPackage rec {
17   pname = "aioquic";
18   version = "0.9.25";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   src = fetchPypi {
24     inherit pname version;
25     hash = "sha256-cHlceJBTJthVwq5SQHIjSq5YbHibgSkuJy0CHpsEMKM=";
26   };
28   patches = [
29     (fetchpatch {
30       url = "https://github.com/aiortc/aioquic/commit/e899593805e0b31325a1d347504eb8e6100fe87d.diff";
31       hash = "sha256-TTpIIWX/R4k2KxhsN17O9cRW/dN0AARYnju8JTht3D8=";
32     })
33   ];
35   nativeBuildInputs = [
36     setuptools
37   ];
39   propagatedBuildInputs = [
40     certifi
41     cryptography
42     pylsqpack
43     pyopenssl
44     service-identity
45   ];
47   buildInputs = [
48     openssl
49   ];
51   nativeCheckInputs = [
52     pytestCheckHook
53   ];
55   pythonImportsCheck = [
56     "aioquic"
57   ];
59   __darwinAllowLocalNetworking = true;
61   meta = with lib; {
62     description = "Implementation of QUIC and HTTP/3";
63     homepage = "https://github.com/aiortc/aioquic";
64     license = licenses.bsd3;
65     maintainers = with maintainers; [ onny ];
66   };