* [gentoo-commits] repo/proj/libressl:master commit in: dev-python/aioquic/, dev-python/aioquic/files/
@ 2025-01-14 16:43 orbea
0 siblings, 0 replies; only message in thread
From: orbea @ 2025-01-14 16:43 UTC (permalink / raw
To: gentoo-commits
commit: 26acfe65e4e96d5d724c84845ef5a7e1b521f041
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Tue Jan 14 16:42:14 2025 +0000
Commit: orbea <orbea <AT> riseup <DOT> net>
CommitDate: Tue Jan 14 16:42:37 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=26acfe65
dev-python/aioquic: new package, add 1.2.0
Signed-off-by: orbea <orbea <AT> riseup.net>
dev-python/aioquic/Manifest | 1 +
dev-python/aioquic/aioquic-1.2.0.ebuild | 39 ++++++++++++++++++++++
.../aioquic/files/aioquic-1.2.0-libressl.patch | 19 +++++++++++
dev-python/aioquic/metadata.xml | 11 ++++++
4 files changed, 70 insertions(+)
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>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-14 16:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-14 16:43 [gentoo-commits] repo/proj/libressl:master commit in: dev-python/aioquic/, dev-python/aioquic/files/ orbea
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox