2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
cryptography,
|
|
|
|
fetchPypi,
|
|
|
|
openssl,
|
|
|
|
pylsqpack,
|
|
|
|
pyopenssl,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
service-identity,
|
2022-11-21 17:40:18 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioquic";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.2.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
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-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-+RJjuz9xlIxciRW01Q7jcABPIKQW9n+rPcyQVWx+cZk=";
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
2022-11-21 17:40:18 +00:00
|
|
|
certifi
|
2024-02-07 01:22:34 +00:00
|
|
|
cryptography
|
2022-11-21 17:40:18 +00:00
|
|
|
pylsqpack
|
|
|
|
pyopenssl
|
2024-01-13 08:15:51 +00:00
|
|
|
service-identity
|
2022-11-21 17:40:18 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ openssl ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|