diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/patatt | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/patatt')
| -rw-r--r-- | dev-python/patatt/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/patatt/files/patatt-0.7.0-py311-tests.patch | 37 | ||||
| -rw-r--r-- | dev-python/patatt/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-python/patatt/patatt-0.7.0-r1.ebuild | 26 |
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/patatt/Manifest b/dev-python/patatt/Manifest new file mode 100644 index 000000000000..5d1d7fa6afd8 --- /dev/null +++ b/dev-python/patatt/Manifest @@ -0,0 +1 @@ +DIST patatt-0.7.0.tar.xz 118440 BLAKE2B 658ce7523b8ecaa562c9f5455132ffcb569ae388cd1a8b5ba60cc87343f899a51642bdc55253a3395954ef5a2b58e1208f2bd89b2f8bd1c900d575ee41337b91 SHA512 65427841036af52621a0b713e4d7eb39dc6a621a59763ece15e7a9c93220eebca9e990361d97809281ffe800f0eacfbd75e06a71b820b7822dd5c9b4b73995f8 diff --git a/dev-python/patatt/files/patatt-0.7.0-py311-tests.patch b/dev-python/patatt/files/patatt-0.7.0-py311-tests.patch new file mode 100644 index 000000000000..134d88a7baf4 --- /dev/null +++ b/dev-python/patatt/files/patatt-0.7.0-py311-tests.patch @@ -0,0 +1,37 @@ +https://git.kernel.org/pub/scm/utils/patatt/patatt.git/commit/?id=3b9f6ecec8e17225b66483ffd0aecb8ba1c328f5 + +From 3b9f6ecec8e17225b66483ffd0aecb8ba1c328f5 Mon Sep 17 00:00:00 2001 +From: Artur Weber <aweber.kernel@gmail.com> +Date: Thu, 8 Jan 2026 17:52:00 +0100 +Subject: Use pre-Python 3.13 Generator type syntax in conftest.py + +Python 3.13 defaults to None for the other fields of the Generator type, +but the version of Generator in older versions does not support such syntax. +Explicitly add the missing fields to allow the tests to run on older Python +versions. + +(An alternative solution would be to use typing-extensions for older +versions, though that would require adding another dependency.) + +Signed-off-by: Artur Weber <aweber.kernel@gmail.com> +Link: https://patch.msgid.link/20260108165200.11313-1-aweber.kernel@gmail.com +Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org> +--- + tests/conftest.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/conftest.py b/tests/conftest.py +index c5ced78..a9c9157 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -20,7 +20,7 @@ This is a test email body. + """ + + @pytest.fixture +-def temp_data_dir() -> Generator[str]: ++def temp_data_dir() -> Generator[str, None, None]: + """Create a temporary data directory structure for patatt.""" + with tempfile.TemporaryDirectory() as tmpdirname: + # Create directory structure similar to patatt's data dir +-- +cgit 1.3-korg diff --git a/dev-python/patatt/metadata.xml b/dev-python/patatt/metadata.xml new file mode 100644 index 000000000000..73473602d4e3 --- /dev/null +++ b/dev-python/patatt/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zx2c4@gentoo.org</email> + <name>Jason A. Donenfeld</name> + </maintainer> + <maintainer type="person"> + <email>mpagano@gentoo.org</email> + <name>Mike Pagano</name> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/patatt/patatt-0.7.0-r1.ebuild b/dev-python/patatt/patatt-0.7.0-r1.ebuild new file mode 100644 index 000000000000..d21f42b05285 --- /dev/null +++ b/dev-python/patatt/patatt-0.7.0-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A simple library to add cryptographic attestation to patches sent via email" +HOMEPAGE="https://patatt.docs.kernel.org/en/latest/ https://pypi.org/project/patatt/" +SRC_URI="https://www.kernel.org/pub/software/devel/patatt/${P}.tar.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 arm64 ~ppc ~ppc64 x86" + +RDEPEND="dev-python/pynacl[${PYTHON_USEDEP}]" + +PATCHES=( + "${FILESDIR}"/${P}-py311-tests.patch +) + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest |
