aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo G. Baio <dbaio@FreeBSD.org>2021-05-30 11:08:26 +0000
committerDanilo G. Baio <dbaio@FreeBSD.org>2021-05-30 11:21:49 +0000
commitec71ebb98cf786e6801e7b27df2433fcbfb9af29 (patch)
tree18bef8d19976515480a34d25897ab64ed7cb16db
parent6822b0ad83365da2815c57a06805e11a9aabd209 (diff)
downloadports-ec71ebb98cf786e6801e7b27df2433fcbfb9af29.tar.gz
ports-ec71ebb98cf786e6801e7b27df2433fcbfb9af29.zip
devel/py-itemloaders: Base library in Python for scrapy's ItemLoader
itemloaders is a Python library that helps you collect data from HTML and XML sources. It comes in handy to extract data from web pages, as it supports data extraction using CSS and XPath Selectors. It's specially useful when you need to standardize the data from many sources. For example, it allows you to have all your casting and parsing rules in a single place. WWW: https://pypi.org/project/itemloaders/
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-itemloaders/Makefile23
-rw-r--r--devel/py-itemloaders/distinfo3
-rw-r--r--devel/py-itemloaders/pkg-descr11
4 files changed, 38 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 150cd70f8465..2d1f38207da1 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4556,6 +4556,7 @@
SUBDIR += py-isort
SUBDIR += py-itanium_demangler
SUBDIR += py-itemadapter
+ SUBDIR += py-itemloaders
SUBDIR += py-iterpipes
SUBDIR += py-itypes
SUBDIR += py-jaraco
diff --git a/devel/py-itemloaders/Makefile b/devel/py-itemloaders/Makefile
new file mode 100644
index 000000000000..34af46dcedb7
--- /dev/null
+++ b/devel/py-itemloaders/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= itemloaders
+DISTVERSION= 1.0.4
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dbaio@FreeBSD.org
+COMMENT= Base library in Python for scrapy's ItemLoader
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}w3lib>=1.17.0:www/py-w3lib@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}parsel>=1.5.0:textproc/py-parsel@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jmespath>=0.9.5:devel/py-jmespath@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}itemadapter>=0.1.0:devel/py-itemadapter@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-itemloaders/distinfo b/devel/py-itemloaders/distinfo
new file mode 100644
index 000000000000..d266b7e6285a
--- /dev/null
+++ b/devel/py-itemloaders/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1622322271
+SHA256 (itemloaders-1.0.4.tar.gz) = 1277cd8ca3e4c02dcdfbc1bcae9134ad89acfa6041bd15b4561c6290203a0c96
+SIZE (itemloaders-1.0.4.tar.gz) = 11731
diff --git a/devel/py-itemloaders/pkg-descr b/devel/py-itemloaders/pkg-descr
new file mode 100644
index 000000000000..93915b746bf6
--- /dev/null
+++ b/devel/py-itemloaders/pkg-descr
@@ -0,0 +1,11 @@
+itemloaders is a Python library that helps you collect data from HTML and XML
+sources.
+
+It comes in handy to extract data from web pages, as it supports data
+extraction using CSS and XPath Selectors.
+
+It's specially useful when you need to standardize the data from many sources.
+For example, it allows you to have all your casting and parsing rules in a
+single place.
+
+WWW: https://pypi.org/project/itemloaders/