dev-python/feedparser: new package, add 6.0.10
Closes: #2566 Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
ea09c3a1af
commit
04f397e2ce
@ -612,7 +612,7 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 1574 Ebuilds in total, 1563 of them have in total 1580 (42 different) licenses assigned.
|
||||
There are 1575 Ebuilds in total, 1564 of them have in total 1581 (42 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
@ -625,7 +625,7 @@ There are 1574 Ebuilds in total, 1563 of them have in total 1580 (42 different)
|
||||
|all-rights-reserved|15|
|
||||
|GPL-3+|11|
|
||||
|LGPL-3+|11|
|
||||
|BSD-2|9|
|
||||
|BSD-2|10|
|
||||
|Unlicense|9|
|
||||
|ISC|5|
|
||||
|MPL-2.0|5|
|
||||
|
||||
4
dev-python/feedparser/Manifest
Normal file
4
dev-python/feedparser/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
AUX feedparser-6.0.8-fix-py3.10.patch 555 BLAKE2B 20ff9ae0e540bc2dfbb2d336a12804c444f99f9249e4a4f4aff241cdb3e927aeb8c64ac5eb410b273f7628f5fa4bebd19dc26776ca0ad65a591e493197884c25 SHA512 6a663180a185e5ff915bf5f45220e08ef58c2bc8253e7d943cbb065c202b611dcd1cd6baeef26d9ea6487679d69b3449d2c5f7d6dcc6044e19df52650190c1f9
|
||||
DIST feedparser-6.0.10.tar.gz 252872 BLAKE2B 5c3b32d264bd00225de20c56c664f369516ead06b33ed1f2ae4123002297b12cc78c2680366e125af1762e53cd4452f2070e5e726de2f0c9ccd71c78cc5ab3a2 SHA512 92f5608d1a12172bc1524d5c8caa75f1cc1a6d7d3456ecd585e6715209cdff469b775c677b8393e1d1e1a895b857fc3c048c36fb83b215308b707a1f71c6e9d3
|
||||
EBUILD feedparser-6.0.10.ebuild 915 BLAKE2B 5e1a34095bfe5d816b7a405b8361701332a3065ceb0c4a613a0b9cf21662753ee8695ca1a636d4e3de5e3e5a91a8d0f0625465ab676108b9530b1da788224fee SHA512 9c3ee14382ba218c8b423001de46382a6e4d1e63896f16f8e82c544462f5284bb4a209a7c5cd69d787d6b2d67c09dafcaa4dc4f02ea63e2471e295482fe60bdb
|
||||
MISC metadata.xml 570 BLAKE2B 09aac4a94bcee4eb646fd9265d4f9f983186fd4a2dc641f7ae461aad58ad221d3b36173c4e33dcbc6af0a2f4a145ba894119db6be6bad1009ec77e6abf76e019 SHA512 9af46fa2f5803493ab0125a77b3b7e50c548f11ea4bf6a8d17345d6bb512e77f51d902e60577a95a21a36e854e9380659d8db224ee25174a7f0eb8e65444bef3
|
||||
46
dev-python/feedparser/feedparser-6.0.10.ebuild
Normal file
46
dev-python/feedparser/feedparser-6.0.10.ebuild
Normal file
@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PV=${PV/_beta/b}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
DESCRIPTION="Parse RSS and Atom feeds in Python"
|
||||
HOMEPAGE="
|
||||
https://github.com/kurtmckee/feedparser/
|
||||
https://pypi.org/project/feedparser/
|
||||
"
|
||||
SRC_URI="
|
||||
https://github.com/kurtmckee/feedparser/archive/${MY_PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-python/sgmllib3k[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/feedparser-6.0.8-fix-py3.10.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# broken
|
||||
rm \
|
||||
tests/illformed/chardet/big5.xml \
|
||||
tests/illformed/undeclared_namespace.xml || die
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
"${EPYTHON}" tests/runtests.py -v || die "Tests failed with ${EPYTHON}"
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
From: Kurt McKee <contactme@kurtmckee.org>
|
||||
Date: Sat, 12 Jun 2021 15:32:05 -0500
|
||||
Subject: [PATCH] Fix a crash that occurs with Python 3.10.0b2
|
||||
|
||||
--- a/feedparser/html.py
|
||||
+++ b/feedparser/html.py
|
||||
@@ -337,7 +337,7 @@ def parse_declaration(self, i):
|
||||
|
||||
try:
|
||||
return sgmllib.SGMLParser.parse_declaration(self, i)
|
||||
- except sgmllib.SGMLParseError:
|
||||
+ except (AssertionError, sgmllib.SGMLParseError):
|
||||
# Escape the doctype declaration and continue parsing.
|
||||
self.handle_data('<')
|
||||
return i+1
|
||||
17
dev-python/feedparser/metadata.xml
Normal file
17
dev-python/feedparser/metadata.xml
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>b@edevau.net</email>
|
||||
<name>Andreas Billmeier</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">feedparser</remote-id>
|
||||
<remote-id type="github">kurtmckee/feedparser</remote-id>
|
||||
<doc>https://pythonhosted.org/feedparser/</doc>
|
||||
<maintainer status="unknown">
|
||||
<email>contactme@kurtmckee.org</email>
|
||||
<name>Kurt McKee</name>
|
||||
</maintainer>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Loading…
x
Reference in New Issue
Block a user