mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/feedparser: drop 5.2.1-r2
Closes: https://bugs.gentoo.org/703094 Closes: https://bugs.gentoo.org/724352 Closes: https://bugs.gentoo.org/812893 Closes: https://bugs.gentoo.org/745240 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST feedparser-5.2.1.tar.gz 252956 BLAKE2B 182ebefa8a44276e758f277c203c28b274c580b667b039e4fc6ed9bd059b15e35e775e9efb784a97d712dc57e7b176ff91d6e094ddd225735f4315ffa770ae83 SHA512 1fd0c4324e2eff8ef4b15e3793c767290bca562af4a5056fdbdfa12411095530c87a113bb1b9757e532ff63aecb399b18f1e6b753884798eb6b8d3fdf575af81
|
||||
DIST feedparser-6.0.8.tar.gz 252496 BLAKE2B 1a17ef6aa41e0782743d5d331ba26e2d1518475534adcd62457bc6fab00b93e24a3a3b03f4acf8358d321464b985c9d09383dc0373680577c10b742c5e1366fd SHA512 9de702dbebe28b379fd164afed8c408f46301f3ebf91d9f862f12de98a1bcee9f6d38a27c0b8a64e87bc0a20d0ad992ed78b190406649f775e2e8c9ca62b4d8c
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..9} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Parse RSS and Atom feeds in Python"
|
||||
HOMEPAGE="https://github.com/kurtmckee/feedparser https://pypi.org/project/feedparser/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
# sgmllib is licensed under PSF-2.
|
||||
LICENSE="BSD-2 PSF-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris"
|
||||
|
||||
# Tests have issues with chardet installed, and are just kind of buggy.
|
||||
RESTRICT="test"
|
||||
|
||||
BDEPEND="<dev-python/setuptools-58[${PYTHON_USEDEP}]"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-sgmllib.patch"
|
||||
)
|
||||
|
||||
python_prepare_all() {
|
||||
mv feedparser/sgmllib3.py feedparser/_feedparser_sgmllib.py || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cp feedparser/feedparsertest.py "${BUILD_DIR}" || die
|
||||
ln -s "${S}/feedparser/tests" "${BUILD_DIR}/tests" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
if [[ ${EPYTHON} == python3* ]]; then
|
||||
2to3 --no-diffs -w -n feedparsertest.py || die
|
||||
fi
|
||||
"${PYTHON}" feedparsertest.py || die "Testing failed with ${EPYTHON}"
|
||||
}
|
||||
Reference in New Issue
Block a user