summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2020-10-13 12:33:09 +0000
committerschmonz <schmonz@pkgsrc.org>2020-10-13 12:33:09 +0000
commit201316be097a3652c641070708e895d97e7e90d7 (patch)
treee4901a5ec88ce28fc45ed3650581f6a96843af31
parent3caa63469c7159b5cd2d47948a440e245b0bf370 (diff)
downloadpkgsrc-201316be097a3652c641070708e895d97e7e90d7.tar.gz
Add feedparser 6.0.0, which drops support for Python 2.7 and adds some
API changes.
-rw-r--r--textproc/py-feedparser/DESCR15
-rw-r--r--textproc/py-feedparser/Makefile29
-rw-r--r--textproc/py-feedparser/PLIST102
-rw-r--r--textproc/py-feedparser/distinfo6
4 files changed, 152 insertions, 0 deletions
diff --git a/textproc/py-feedparser/DESCR b/textproc/py-feedparser/DESCR
new file mode 100644
index 00000000000..469d310316e
--- /dev/null
+++ b/textproc/py-feedparser/DESCR
@@ -0,0 +1,15 @@
+Universal Feed Parser is a Python module for downloading and parsing
+syndicated feeds. It can handle RSS 0.90, Netscape RSS 0.91, Userland
+RSS 0.91, RSS 0.92, RSS 0.93, RSS 0.94, RSS 1.0, RSS 2.0, Atom 0.3,
+Atom 1.0, and CDF feeds. It also parses several popular extension
+modules, including Dublin Core and Apple's iTunes extensions.
+
+To use Universal Feed Parser, you will need Python 2.1 or later.
+Universal Feed Parser is not meant to run standalone; it is a module
+for you to use as part of a larger Python program.
+
+Universal Feed Parser is easy to use; the module is self-contained
+in a single file, feedparser.py, and it has one primary public
+function, parse. parse takes a number of arguments, but only one
+is required, and it can be a URL, a local filename, or a raw string
+containing feed data in any format.
diff --git a/textproc/py-feedparser/Makefile b/textproc/py-feedparser/Makefile
new file mode 100644
index 00000000000..305f540abe9
--- /dev/null
+++ b/textproc/py-feedparser/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.29 2020/10/13 12:33:09 schmonz Exp $
+
+DISTNAME= feedparser-6.0.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc python
+MASTER_SITES= ${MASTER_SITE_PYPI:=f/feedparser/}
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= https://pypi.python.org/pypi/feedparser
+COMMENT= Parse RSS and Atom feeds in Python
+LICENSE= 2-clause-bsd
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+DEPENDS+= ${PYPKGPREFIX}-sgmllib3k-[0-9]*:../../textproc/py-sgmllib3k
+
+post-extract:
+ cd ${WRKSRC}/tests/illformed && \
+ rm -f chardet/big5.xml undeclared_namespace.xml
+
+TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
+
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} tests/runtests.py
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/py-feedparser/PLIST b/textproc/py-feedparser/PLIST
new file mode 100644
index 00000000000..2a2152e84c4
--- /dev/null
+++ b/textproc/py-feedparser/PLIST
@@ -0,0 +1,102 @@
+@comment $NetBSD: PLIST,v 1.6 2020/10/13 12:33:09 schmonz Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/feedparser/__init__.py
+${PYSITELIB}/feedparser/__init__.pyc
+${PYSITELIB}/feedparser/__init__.pyo
+${PYSITELIB}/feedparser/api.py
+${PYSITELIB}/feedparser/api.pyc
+${PYSITELIB}/feedparser/api.pyo
+${PYSITELIB}/feedparser/datetimes/__init__.py
+${PYSITELIB}/feedparser/datetimes/__init__.pyc
+${PYSITELIB}/feedparser/datetimes/__init__.pyo
+${PYSITELIB}/feedparser/datetimes/asctime.py
+${PYSITELIB}/feedparser/datetimes/asctime.pyc
+${PYSITELIB}/feedparser/datetimes/asctime.pyo
+${PYSITELIB}/feedparser/datetimes/greek.py
+${PYSITELIB}/feedparser/datetimes/greek.pyc
+${PYSITELIB}/feedparser/datetimes/greek.pyo
+${PYSITELIB}/feedparser/datetimes/hungarian.py
+${PYSITELIB}/feedparser/datetimes/hungarian.pyc
+${PYSITELIB}/feedparser/datetimes/hungarian.pyo
+${PYSITELIB}/feedparser/datetimes/iso8601.py
+${PYSITELIB}/feedparser/datetimes/iso8601.pyc
+${PYSITELIB}/feedparser/datetimes/iso8601.pyo
+${PYSITELIB}/feedparser/datetimes/korean.py
+${PYSITELIB}/feedparser/datetimes/korean.pyc
+${PYSITELIB}/feedparser/datetimes/korean.pyo
+${PYSITELIB}/feedparser/datetimes/perforce.py
+${PYSITELIB}/feedparser/datetimes/perforce.pyc
+${PYSITELIB}/feedparser/datetimes/perforce.pyo
+${PYSITELIB}/feedparser/datetimes/rfc822.py
+${PYSITELIB}/feedparser/datetimes/rfc822.pyc
+${PYSITELIB}/feedparser/datetimes/rfc822.pyo
+${PYSITELIB}/feedparser/datetimes/w3dtf.py
+${PYSITELIB}/feedparser/datetimes/w3dtf.pyc
+${PYSITELIB}/feedparser/datetimes/w3dtf.pyo
+${PYSITELIB}/feedparser/encodings.py
+${PYSITELIB}/feedparser/encodings.pyc
+${PYSITELIB}/feedparser/encodings.pyo
+${PYSITELIB}/feedparser/exceptions.py
+${PYSITELIB}/feedparser/exceptions.pyc
+${PYSITELIB}/feedparser/exceptions.pyo
+${PYSITELIB}/feedparser/html.py
+${PYSITELIB}/feedparser/html.pyc
+${PYSITELIB}/feedparser/html.pyo
+${PYSITELIB}/feedparser/http.py
+${PYSITELIB}/feedparser/http.pyc
+${PYSITELIB}/feedparser/http.pyo
+${PYSITELIB}/feedparser/mixin.py
+${PYSITELIB}/feedparser/mixin.pyc
+${PYSITELIB}/feedparser/mixin.pyo
+${PYSITELIB}/feedparser/namespaces/__init__.py
+${PYSITELIB}/feedparser/namespaces/__init__.pyc
+${PYSITELIB}/feedparser/namespaces/__init__.pyo
+${PYSITELIB}/feedparser/namespaces/_base.py
+${PYSITELIB}/feedparser/namespaces/_base.pyc
+${PYSITELIB}/feedparser/namespaces/_base.pyo
+${PYSITELIB}/feedparser/namespaces/admin.py
+${PYSITELIB}/feedparser/namespaces/admin.pyc
+${PYSITELIB}/feedparser/namespaces/admin.pyo
+${PYSITELIB}/feedparser/namespaces/cc.py
+${PYSITELIB}/feedparser/namespaces/cc.pyc
+${PYSITELIB}/feedparser/namespaces/cc.pyo
+${PYSITELIB}/feedparser/namespaces/dc.py
+${PYSITELIB}/feedparser/namespaces/dc.pyc
+${PYSITELIB}/feedparser/namespaces/dc.pyo
+${PYSITELIB}/feedparser/namespaces/georss.py
+${PYSITELIB}/feedparser/namespaces/georss.pyc
+${PYSITELIB}/feedparser/namespaces/georss.pyo
+${PYSITELIB}/feedparser/namespaces/itunes.py
+${PYSITELIB}/feedparser/namespaces/itunes.pyc
+${PYSITELIB}/feedparser/namespaces/itunes.pyo
+${PYSITELIB}/feedparser/namespaces/mediarss.py
+${PYSITELIB}/feedparser/namespaces/mediarss.pyc
+${PYSITELIB}/feedparser/namespaces/mediarss.pyo
+${PYSITELIB}/feedparser/namespaces/psc.py
+${PYSITELIB}/feedparser/namespaces/psc.pyc
+${PYSITELIB}/feedparser/namespaces/psc.pyo
+${PYSITELIB}/feedparser/parsers/__init__.py
+${PYSITELIB}/feedparser/parsers/__init__.pyc
+${PYSITELIB}/feedparser/parsers/__init__.pyo
+${PYSITELIB}/feedparser/parsers/loose.py
+${PYSITELIB}/feedparser/parsers/loose.pyc
+${PYSITELIB}/feedparser/parsers/loose.pyo
+${PYSITELIB}/feedparser/parsers/strict.py
+${PYSITELIB}/feedparser/parsers/strict.pyc
+${PYSITELIB}/feedparser/parsers/strict.pyo
+${PYSITELIB}/feedparser/sanitizer.py
+${PYSITELIB}/feedparser/sanitizer.pyc
+${PYSITELIB}/feedparser/sanitizer.pyo
+${PYSITELIB}/feedparser/sgml.py
+${PYSITELIB}/feedparser/sgml.pyc
+${PYSITELIB}/feedparser/sgml.pyo
+${PYSITELIB}/feedparser/urls.py
+${PYSITELIB}/feedparser/urls.pyc
+${PYSITELIB}/feedparser/urls.pyo
+${PYSITELIB}/feedparser/util.py
+${PYSITELIB}/feedparser/util.pyc
+${PYSITELIB}/feedparser/util.pyo
diff --git a/textproc/py-feedparser/distinfo b/textproc/py-feedparser/distinfo
new file mode 100644
index 00000000000..c4686026ada
--- /dev/null
+++ b/textproc/py-feedparser/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.17 2020/10/13 12:33:09 schmonz Exp $
+
+SHA1 (feedparser-6.0.1.tar.gz) = cf953fc23c20d999c49af81e988afbbec86f722b
+RMD160 (feedparser-6.0.1.tar.gz) = 39963b7bb51406b6a1bd240fddf2a0d7255f0159
+SHA512 (feedparser-6.0.1.tar.gz) = 1349de4762a7f17d2c7d52e8f0de9a9d4370e1e6317aa10c0271724b1bb21514cb98d346b10f5faf43a31cd86c9d23476472e3adb10e0719f6d6b6fc3f7a4d8d
+Size (feedparser-6.0.1.tar.gz) = 284620 bytes