summaryrefslogtreecommitdiff
path: root/dev-python/whoosh
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/whoosh
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-python/whoosh')
-rw-r--r--dev-python/whoosh/Manifest1
-rw-r--r--dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch13
-rw-r--r--dev-python/whoosh/metadata.xml17
-rw-r--r--dev-python/whoosh/whoosh-2.7.4-r2.ebuild41
4 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/whoosh/Manifest b/dev-python/whoosh/Manifest
new file mode 100644
index 000000000000..d2554bed372e
--- /dev/null
+++ b/dev-python/whoosh/Manifest
@@ -0,0 +1 @@
+DIST Whoosh-2.7.4.tar.gz 968741 BLAKE2B 698ec603eb1201f2b1a934785f84108cb5d91114c9a4e1943cfcd2c8c878f7fb0a0868d54d3a11f8aa30890179c555bdc11cbf34962f5f4781c6d43a090ba872 SHA512 7cdefdcf52b704ffe50c00718c42677e2ddfe879f81ad2d14b580b0e026cc0ebb6b9ddc99d8709eaff4eb9b83f654b042c8792821e1ed90aa85cfa6f82845074
diff --git a/dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch b/dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch
new file mode 100644
index 000000000000..94636c199a4c
--- /dev/null
+++ b/dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch
@@ -0,0 +1,13 @@
+Python 2 requires specifying the file encoding
+See also:
+https://www.python.org/dev/peps/pep-0263/
+https://bugs.gentoo.org/show_bug.cgi?id=608324
+
+--- a/tests/test_reading.py
++++ b/tests/test_reading.py
+@@ -1,3 +1,5 @@
++# -*- coding: utf-8 -*-
++
+ from __future__ import with_statement
+ import random, threading, time
+
diff --git a/dev-python/whoosh/metadata.xml b/dev-python/whoosh/metadata.xml
new file mode 100644
index 000000000000..87744db7a019
--- /dev/null
+++ b/dev-python/whoosh/metadata.xml
@@ -0,0 +1,17 @@
+<?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 />
+ <longdescription lang="en">
+ Whoosh is a fast, featureful full-text indexing and searching
+ library implemented in pure Python. Programmers can use it to
+ easily add search functionality to their applications and websites.
+ Every part of how Whoosh works can be extended or replaced to meet
+ your needs exactly.
+ </longdescription>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/dev-python/whoosh/whoosh-2.7.4-r2.ebuild b/dev-python/whoosh/whoosh-2.7.4-r2.ebuild
new file mode 100644
index 000000000000..a36337b1d8b9
--- /dev/null
+++ b/dev-python/whoosh/whoosh-2.7.4-r2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
+PYPI_PN=${PN^}
+PYTHON_COMPAT=( python3_{13..14} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="Fast, pure-Python full text indexing, search and spell checking library"
+HOMEPAGE="
+ https://pypi.org/project/Whoosh/
+ https://github.com/mchaput/whoosh
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-solaris"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.7.4-tests-specify-utf8.patch
+)
+
+distutils_enable_sphinx docs/source
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # TODO
+ tests/test_automata.py::test_minimize_dfa
+)
+
+python_prepare_all() {
+ # (backport from upstream)
+ sed -i -e '/cmdclass/s:pytest:PyTest:' setup.py || die
+ # fix old section name
+ sed -i -e 's@\[pytest\]@[tool:pytest]@' setup.cfg || die
+
+ distutils-r1_python_prepare_all
+}