diff options
author | orbea <orbea@riseup.net> | 2025-01-14 08:42:14 -0800 |
---|---|---|
committer | orbea <orbea@riseup.net> | 2025-01-14 08:42:37 -0800 |
commit | 26acfe65e4e96d5d724c84845ef5a7e1b521f041 (patch) | |
tree | b2c30681b29002015263b7874162a48400ad3c5f | |
parent | dev-util/maturin: sync ::gentoo (diff) | |
download | libressl-master.tar.gz libressl-master.tar.bz2 libressl-master.zip |
Signed-off-by: orbea <orbea@riseup.net>
-rw-r--r-- | dev-python/aioquic/Manifest | 1 | ||||
-rw-r--r-- | dev-python/aioquic/aioquic-1.2.0.ebuild | 39 | ||||
-rw-r--r-- | dev-python/aioquic/files/aioquic-1.2.0-libressl.patch | 19 | ||||
-rw-r--r-- | dev-python/aioquic/metadata.xml | 11 |
4 files changed, 70 insertions, 0 deletions
diff --git a/dev-python/aioquic/Manifest b/dev-python/aioquic/Manifest new file mode 100644 index 0000000..f964990 --- /dev/null +++ b/dev-python/aioquic/Manifest @@ -0,0 +1 @@ +DIST aioquic-1.2.0.tar.gz 179891 BLAKE2B fcf7821a93c166c98cdb7e6e2eb3b80df65c1faa484268faa0fc1386bb59bdfffdf801a8de23c2a2d9dec826640ad75717b068b558081959089e9be7d414bca3 SHA512 6833a19e52ac702a3ae12fdfa3dcd3011125e38d9c16ae88881533f6c607d61c6eac43215eae80c75513d616432a98d124fc92545d63697159658e611af50ee9 diff --git a/dev-python/aioquic/aioquic-1.2.0.ebuild b/dev-python/aioquic/aioquic-1.2.0.ebuild new file mode 100644 index 0000000..feeb7e0 --- /dev/null +++ b/dev-python/aioquic/aioquic-1.2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2024-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="An implementation of QUIC and HTTP/3" +HOMEPAGE=" + https://github.com/aiortc/aioquic/ + https://pypi.org/project/aioquic/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND=" + dev-libs/openssl:= +" +RDEPEND=" + ${DEPEND} + dev-python/certifi[${PYTHON_USEDEP}] + >=dev-python/cryptography-42.0.0[${PYTHON_USEDEP}] + <dev-python/pylsqpack-0.4.0[${PYTHON_USEDEP}] + >=dev-python/pylsqpack-0.3.3[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-24[${PYTHON_USEDEP}] + >=dev-python/service-identity-24.1.0[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.0-libressl.patch +) + +distutils_enable_tests pytest diff --git a/dev-python/aioquic/files/aioquic-1.2.0-libressl.patch b/dev-python/aioquic/files/aioquic-1.2.0-libressl.patch new file mode 100644 index 0000000..8948a11 --- /dev/null +++ b/dev-python/aioquic/files/aioquic-1.2.0-libressl.patch @@ -0,0 +1,19 @@ +https://github.com/openbsd/ports/blob/def9b91f126f8a28562549593c6b5c17d41692ca/www/py-aioquic/patches/patch-src_aioquic__crypto_c + +Index: src/aioquic/_crypto.c +--- a/src/aioquic/_crypto.c.orig ++++ b/src/aioquic/_crypto.c +@@ -407,10 +407,13 @@ PyInit__crypto(void) + PyModule_AddObject(m, "HeaderProtection", HeaderProtectionType); + + // ensure required ciphers are initialised ++ // LibreSSL loads all cipher by default, and doesn't support add_cipher ++#ifndef LIBRESSL_VERSION_NUMBER + EVP_add_cipher(EVP_aes_128_ecb()); + EVP_add_cipher(EVP_aes_128_gcm()); + EVP_add_cipher(EVP_aes_256_ecb()); + EVP_add_cipher(EVP_aes_256_gcm()); ++#endif + + return m; + } diff --git a/dev-python/aioquic/metadata.xml b/dev-python/aioquic/metadata.xml new file mode 100644 index 0000000..530257f --- /dev/null +++ b/dev-python/aioquic/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">aiortc/aioquic</remote-id> + <remote-id type="pypi">aioquic</remote-id> + </upstream> +</pkgmetadata> |