diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/whoosh | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/whoosh')
| -rw-r--r-- | dev-python/whoosh/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/whoosh/files/whoosh-2.7.4-tests-specify-utf8.patch | 13 | ||||
| -rw-r--r-- | dev-python/whoosh/metadata.xml | 24 | ||||
| -rw-r--r-- | dev-python/whoosh/whoosh-2.7.4.ebuild | 35 |
4 files changed, 73 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..5001fe5c18d0 --- /dev/null +++ b/dev-python/whoosh/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <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> + <upstream> + <remote-id type="pypi">Whoosh</remote-id> + <remote-id type="bitbucket">mchaput/whoosh</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/whoosh/whoosh-2.7.4.ebuild b/dev-python/whoosh/whoosh-2.7.4.ebuild new file mode 100644 index 000000000000..a445686a4f4e --- /dev/null +++ b/dev-python/whoosh/whoosh-2.7.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Fast, pure-Python full text indexing, search and spell checking library" +HOMEPAGE="https://bitbucket.org/mchaput/whoosh/wiki/Home/ https://pypi.org/project/Whoosh/" +SRC_URI="mirror://pypi/W/${PN^}/${P^}.tar.gz" +S="${WORKDIR}/${P^}" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~x64-solaris" + +PATCHES=( + "${FILESDIR}"/${PN}-2.7.4-tests-specify-utf8.patch +) + +distutils_enable_sphinx docs/source +distutils_enable_tests pytest + +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 + # TODO: broken? + sed -i -e 's:test_minimize_dfa:_&:' tests/test_automata.py || die + + distutils-r1_python_prepare_all +} |
