Files
nixpkgs/pkgs/development/python-modules/aioquic_1_2/default.nix
2026-11-16 10:23:09 -08:00

61 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
certifi,
cryptography,
fetchFromGitHub,
mitmproxy,
openssl,
pylsqpack,
pyopenssl,
pytestCheckHook,
setuptools,
service-identity,
}:
buildPythonPackage rec {
pname = "aioquic";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "aiortc";
repo = "aioquic";
tag = version;
hash = "sha256-SAgE/p4x0utaAxfaS6Lt6/JZYPLvBNmQbxc2Yiw/8os=";
};
build-system = [ setuptools ];
dependencies = [
certifi
cryptography
pylsqpack
pyopenssl
service-identity
];
buildInputs = [ openssl ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# QUIC needs UDP/multicast not available in sandbox.
"test_connect_and_serve_ipv4"
];
pythonImportsCheck = [ "aioquic" ];
__darwinAllowLocalNetworking = true;
meta = {
description = "Implementation of QUIC and HTTP/3";
homepage = "https://github.com/aiortc/aioquic";
changelog = "https://github.com/aiortc/aioquic/blob/${version}/docs/changelog.rst";
license = lib.licenses.bsd3;
# This package will be dropped as soon as mitmproxy supports a newer version, unless someone else steps up
inherit (mitmproxy.meta) maintainers;
};
}