depot/third_party/nixpkgs/pkgs/development/python-modules/aioquic/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

52 lines
920 B
Nix

{
lib,
buildPythonPackage,
certifi,
cryptography,
fetchPypi,
openssl,
pylsqpack,
pyopenssl,
pytestCheckHook,
pythonOlder,
setuptools,
service-identity,
}:
buildPythonPackage rec {
pname = "aioquic";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-+RJjuz9xlIxciRW01Q7jcABPIKQW9n+rPcyQVWx+cZk=";
};
build-system = [ setuptools ];
dependencies = [
certifi
cryptography
pylsqpack
pyopenssl
service-identity
];
buildInputs = [ openssl ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "aioquic" ];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Implementation of QUIC and HTTP/3";
homepage = "https://github.com/aiortc/aioquic";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}