From 5c09bec1f48660f5e4dedec523e3881e8ce4e9a7 Mon Sep 17 00:00:00 2001 From: Alfred Wingate Date: Fri, 17 Nov 2023 14:03:13 +0200 Subject: [PATCH] dev-python/python-olm: new package, add 3.2.15 Signed-off-by: Alfred Wingate --- dev-python/python-olm/Manifest | 1 + dev-python/python-olm/metadata.xml | 11 +++++ .../python-olm/python-olm-3.2.15.ebuild | 40 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 dev-python/python-olm/Manifest create mode 100644 dev-python/python-olm/metadata.xml create mode 100644 dev-python/python-olm/python-olm-3.2.15.ebuild diff --git a/dev-python/python-olm/Manifest b/dev-python/python-olm/Manifest new file mode 100644 index 0000000..75abd2e --- /dev/null +++ b/dev-python/python-olm/Manifest @@ -0,0 +1 @@ +DIST olm-3.2.15.tar.bz2 2744760 BLAKE2B 44486a63217998010a0bb7e01ff3315c88e139d686b97158e67af29b2f052912412541fb944a17c5d8931df9c641a73e521ef8d0ff352b80fe30bd6fb73b2e7b SHA512 81832766e477fc17908e8d1c49b5403d87b5977fd9102605d95ef2a3907619b7301e32fe0e18ec0f575b1f004ce248633307ff43b0f48bc9bb2313cdfefd6ea7 diff --git a/dev-python/python-olm/metadata.xml b/dev-python/python-olm/metadata.xml new file mode 100644 index 0000000..8d459f1 --- /dev/null +++ b/dev-python/python-olm/metadata.xml @@ -0,0 +1,11 @@ + + + + + parona@protonmail.com + Alfred Wingate + + + python-olm + + diff --git a/dev-python/python-olm/python-olm-3.2.15.ebuild b/dev-python/python-olm/python-olm-3.2.15.ebuild new file mode 100644 index 0000000..ba75de2 --- /dev/null +++ b/dev-python/python-olm/python-olm-3.2.15.ebuild @@ -0,0 +1,40 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="python CFFI bindings for the olm cryptographic ratchet library" +HOMEPAGE=" + https://gitlab.matrix.org/matrix-org/olm + https://pypi.org/project/python-olm/ +" +SRC_URI="https://gitlab.matrix.org/matrix-org/olm/-/archive/${PV}/olm-${PV}.tar.bz2" +S="${WORKDIR}/olm-${PV}/python/" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + ~dev-libs/olm-${PV}[-python(-)] + dev-python/cffi[${PYTHON_USEDEP}] +" +RDEPEND="${DEPEND}" +BDEPEND=" + test? ( + dev-python/aspectlib[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # deselect tests using benchmark fixtures + "tests/group_session_test.py::TestClass::test_encrypt" + "tests/group_session_test.py::TestClass::test_decrypt" +)