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/pyspf | |
| 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/pyspf')
| -rw-r--r-- | dev-python/pyspf/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyspf/files/pyspf-2.0.14-py313.patch | 23 | ||||
| -rw-r--r-- | dev-python/pyspf/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/pyspf/pyspf-2.0.14-r3.ebuild | 44 |
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-python/pyspf/Manifest b/dev-python/pyspf/Manifest new file mode 100644 index 000000000000..b7fa173f03d9 --- /dev/null +++ b/dev-python/pyspf/Manifest @@ -0,0 +1 @@ +DIST pyspf-2.0.14.tar.gz 69446 BLAKE2B 95a3bf89ab85aad84dcbbe81ada7f19d23cc689893df1d1317c0e06eb1f6b6d21b1e805d68e7c0c84161d711b9c6067f115d78c8786ce384036f7d0c425269b9 SHA512 ca801a899a80c18cd2c6bb8c125817c29898189805040cce8d29ace7a5aa34b43b9d10545150a1f39abd7bc49cd8da4fe753a04ac9b911e7bb9d77473753eeee diff --git a/dev-python/pyspf/files/pyspf-2.0.14-py313.patch b/dev-python/pyspf/files/pyspf-2.0.14-py313.patch new file mode 100644 index 000000000000..d6f71759fa49 --- /dev/null +++ b/dev-python/pyspf/files/pyspf-2.0.14-py313.patch @@ -0,0 +1,23 @@ +From 7c92c9db299a466aad981dd747bbfd2a57db6827 Mon Sep 17 00:00:00 2001 +From: Colin Watson <cjwatson@debian.org> +Date: Sun, 12 Jan 2025 15:40:39 +0000 +Subject: [PATCH] Fix doctest registration for Python 3.13 + +`unittest.makeSuite` was deprecated in Python 3.11 and removed in 3.13. +--- + test/testspf.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/testspf.py b/test/testspf.py +index eb8d933..beac450 100644 +--- a/test/testspf.py ++++ b/test/testspf.py +@@ -225,7 +225,7 @@ def makeSuite(filename): + return suite + + def docsuite(): +- suite = unittest.makeSuite(SPFTestCases,'test') ++ suite = unittest.defaultTestLoader.loadTestsFromTestCase(SPFTestCases) + try: + import authres + except: diff --git a/dev-python/pyspf/metadata.xml b/dev-python/pyspf/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/pyspf/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/pyspf/pyspf-2.0.14-r3.ebuild b/dev-python/pyspf/pyspf-2.0.14-r3.ebuild new file mode 100644 index 000000000000..7be5221fc004 --- /dev/null +++ b/dev-python/pyspf/pyspf-2.0.14-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) +PYTHON_REQ_USE="ipv6(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="Python implementation of the Sender Policy Framework (SPF)" +HOMEPAGE=" + https://github.com/sdgathman/pyspf/ + https://pypi.org/project/pyspf/ +" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="amd64 arm64 ~riscv x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/authres[${PYTHON_USEDEP}] + dev-python/dnspython[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + # https://github.com/sdgathman/pyspf/pull/42 + "${FILESDIR}/${P}-py313.patch" +) + +python_test() { + cd test || die + "${EPYTHON}" testspf.py || die "Test fail with ${EPYTHON}" +} |
