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/pyrqlite | |
| 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/pyrqlite')
| -rw-r--r-- | dev-python/pyrqlite/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyrqlite/files/pyrqlite-2.2.3-test-support.patch | 50 | ||||
| -rw-r--r-- | dev-python/pyrqlite/metadata.xml | 8 | ||||
| -rw-r--r-- | dev-python/pyrqlite/pyrqlite-2.2.3.ebuild | 31 |
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-python/pyrqlite/Manifest b/dev-python/pyrqlite/Manifest new file mode 100644 index 000000000000..ef686f56dcf8 --- /dev/null +++ b/dev-python/pyrqlite/Manifest @@ -0,0 +1 @@ +DIST pyrqlite-2.2.3.gh.tar.gz 21554 BLAKE2B 1a3c09eaee20a19ab06a4f91a5b12659eafe425f796599ef9abf85f99563a62b40f1f82488611e0bbd1fb18853e2b1e310ecd7f94cb89f5840e34c51a4bd42ef SHA512 063a9072846c31fd34ea5261fe97f1023a95122c39c58292c7ab08ba148e01ab5001adda28c2856f0e29b67be553a8bae011d274edfdd3028aacd22179d309d7 diff --git a/dev-python/pyrqlite/files/pyrqlite-2.2.3-test-support.patch b/dev-python/pyrqlite/files/pyrqlite-2.2.3-test-support.patch new file mode 100644 index 000000000000..06559446ef12 --- /dev/null +++ b/dev-python/pyrqlite/files/pyrqlite-2.2.3-test-support.patch @@ -0,0 +1,50 @@ +From cb5ba83c0ba95eae0026afdc8ae0312b8e51f647 Mon Sep 17 00:00:00 2001 +From: Zac Medico <zmedico@gmail.com> +Date: Wed, 2 Oct 2024 16:48:38 -0700 +Subject: [PATCH] Eliminate non-public test.support usage + +This fixes the "No module named test" issue reported here: + +https://bugs.gentoo.org/940579 +--- + src/test/test_dbapi.py | 17 ++++++----------- + 1 file changed, 6 insertions(+), 11 deletions(-) + +diff --git a/src/test/test_dbapi.py b/src/test/test_dbapi.py +index df32f2f..cb756d2 100644 +--- a/src/test/test_dbapi.py ++++ b/src/test/test_dbapi.py +@@ -24,13 +24,6 @@ + from __future__ import print_function + + import sys +-try: +- import test.support.warnings_helper as test_support +-except ImportError: +- try: +- import test.support as test_support +- except ImportError: +- from test import test_support + import unittest + + import pyrqlite.dbapi2 as sqlite +@@ -571,10 +564,12 @@ class ConstructorTests(unittest.TestCase): + ts = sqlite.TimestampFromTicks(42) + + def test_CheckBinary(self): +- with (test_support.check_warnings() if sys.version_info[0] >= 3 +- else test_support.check_py3k_warnings()): +- b = sqlite.Binary(chr(0).encode() + b"'" +- if sys.version_info[0] >= 3 else chr(0) + b"'") ++ self.assertEqual( ++ b"\0'", ++ sqlite.Binary( ++ chr(0).encode() + b"'" if sys.version_info[0] >= 3 else chr(0) + b"'" ++ ), ++ ) + + class ExtensionTests(unittest.TestCase): + @classmethod +-- +2.45.2 + diff --git a/dev-python/pyrqlite/metadata.xml b/dev-python/pyrqlite/metadata.xml new file mode 100644 index 000000000000..b5c78a8ab61b --- /dev/null +++ b/dev-python/pyrqlite/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/pyrqlite/pyrqlite-2.2.3.ebuild b/dev-python/pyrqlite/pyrqlite-2.2.3.ebuild new file mode 100644 index 000000000000..3bb21c874d39 --- /dev/null +++ b/dev-python/pyrqlite/pyrqlite-2.2.3.ebuild @@ -0,0 +1,31 @@ +# 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} ) +inherit distutils-r1 + +DESCRIPTION="Python client for rqlite" +HOMEPAGE=" + https://github.com/rqlite/pyrqlite/ + https://pypi.org/project/pyrqlite/ +" +SRC_URI=" + https://github.com/rqlite/pyrqlite/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + test? ( + >=dev-db/rqlite-6.7.0 + ) +" +PATCHES=("${FILESDIR}/pyrqlite-2.2.3-test-support.patch") + +distutils_enable_tests pytest |
