2022-11-21 17:40:18 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, certifi
|
|
|
|
, fetchPypi
|
2022-11-21 17:40:18 +00:00
|
|
|
, openssl
|
|
|
|
, pylsqpack
|
|
|
|
, pyopenssl
|
2023-10-09 19:29:22 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
|
|
|
, service-identity
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioquic";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.9.23";
|
|
|
|
pyproject = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-UsnaYO0IN/6LimoNfc8N++vsjpoCfhDr9yBPBWnFj6g=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
certifi
|
|
|
|
pylsqpack
|
|
|
|
pyopenssl
|
2024-01-13 08:15:51 +00:00
|
|
|
service-identity
|
2022-11-21 17:40:18 +00:00
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioquic"
|
|
|
|
];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Implementation of QUIC and HTTP/3";
|
|
|
|
homepage = "https://github.com/aiortc/aioquic";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|