summaryrefslogtreecommitdiff
path: root/dev-python/pynng
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-01 07:18:39 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-01 07:18:39 +0000
commitadf2493bc15dece8e5a4b1dedea642158118767c (patch)
tree9f2da9e0763f94cf6661f597647539fd5a890d28 /dev-python/pynng
parentdebaa2f2ae9412369543f9976a7e63ca690a1e93 (diff)
downloadbaldeagleos-repo-adf2493bc15dece8e5a4b1dedea642158118767c.tar.gz
baldeagleos-repo-adf2493bc15dece8e5a4b1dedea642158118767c.tar.xz
baldeagleos-repo-adf2493bc15dece8e5a4b1dedea642158118767c.zip
Adding metadata
Diffstat (limited to 'dev-python/pynng')
-rw-r--r--dev-python/pynng/Manifest1
-rw-r--r--dev-python/pynng/pynng-0.9.0.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pynng/Manifest b/dev-python/pynng/Manifest
index ad65ff108c41..4a31b26ff5ae 100644
--- a/dev-python/pynng/Manifest
+++ b/dev-python/pynng/Manifest
@@ -1 +1,2 @@
DIST pynng-0.8.1.tar.gz 6364925 BLAKE2B ae10e9155997474634ca7cf6e1ff01572f877dc8157aea069e11866b29fe92a2ee8343fd1512fad57f25e5c4cbf7297c784ab9fcdc7c262aba889cd65595775d SHA512 b150a83b65169aa67aaf99d963ae43ede29ccf22f1ddc9989a0d999f32dd93412bbf464ad0c3eed7aa645e0f5e2726743d131e48276955dad034e219b23c93c4
+DIST pynng-0.9.0.tar.gz 7211228 BLAKE2B 7b3a867597379b03f287507d8043acae502ca555b162504ed11c49d514e9c13240ab7b5316c7555b6e68879ac8518e96343155f5218913f62f9821c28c524343 SHA512 e3ea42e5910009040d1c9125e8b4ed4d2350d742704b4bb75863cadb6cc0feb58114bb10a6ab9f2f34c47c85d19c5a8c442df539ad051f87c70c5990f213fe48
diff --git a/dev-python/pynng/pynng-0.9.0.ebuild b/dev-python/pynng/pynng-0.9.0.ebuild
new file mode 100644
index 000000000000..b5fa41a1abe9
--- /dev/null
+++ b/dev-python/pynng/pynng-0.9.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..14} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="Ergonomic bindings for nanomsg next generation (nng) in Python"
+HOMEPAGE="https://github.com/codypiersall/pynng https://pypi.org/project/pynng"
+
+LICENSE="MIT"
+SLOT=0
+KEYWORDS="~amd64"
+
+# pynng 0.9.0 bundles nng and mbedtls, building them from source via cmake
+RDEPEND="
+ dev-python/cffi[${PYTHON_USEDEP}]
+ dev-python/sniffio[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ dev-python/cffi[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-build/cmake
+ dev-build/ninja
+ test? (
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}]
+ dev-python/pytest-trio[${PYTHON_USEDEP}]
+ dev-python/sniffio[${PYTHON_USEDEP}]
+ dev-python/trio[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # Fix bundled mbedtls build failure with GCC 15:
+ # -Werror=unterminated-string-initialization on unsigned char arrays
+ sed -i 's/-Wno-error=array-bounds/-Wno-error=array-bounds -Wno-error=unterminated-string-initialization/' \
+ setup.py || die
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ # Remove source pynng directory to avoid import conflicts
+ # Tests must run against the installed C extension module
+ rm -rf pynng || die
+ epytest
+}