summaryrefslogtreecommitdiff
path: root/math/py-pandas-datareader
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-03-08 05:28:19 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-03-08 05:28:19 +0000
commit3e3dd275c8fb4f8396b7b4d3a327e0fbeeecd26f (patch)
tree76df889dc737706fbd00dae36a6d96fbdc2f81b8 /math/py-pandas-datareader
parentsysutils/runit-faster: Fix typo in pkg-message (diff)
New port: math/py-pandas-datareader: Data readers previously found in Pandas
PR: 226440 Submitted by: Shane <FreeBSD@ShaneWare.Biz> Approved by: tcberner (mentor, implicit)
Diffstat (limited to 'math/py-pandas-datareader')
-rw-r--r--math/py-pandas-datareader/Makefile30
-rw-r--r--math/py-pandas-datareader/distinfo3
-rw-r--r--math/py-pandas-datareader/pkg-descr10
3 files changed, 43 insertions, 0 deletions
diff --git a/math/py-pandas-datareader/Makefile b/math/py-pandas-datareader/Makefile
new file mode 100644
index 000000000000..8247e85811c3
--- /dev/null
+++ b/math/py-pandas-datareader/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME= pandas-datareader
+DISTVERSION= 0.6.0
+CATEGORIES= math finance python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= FreeBSD@Shaneware.biz
+COMMENT= Data readers previously found in Pandas
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pandas>0.19.2:math/py-pandas@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>=2.3.0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests-file>0:www/py-requests-file@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests-ftp>0:ftp/py-requests-ftp@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wrapt>0:devel/py-wrapt@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist
+NO_ARCH= yes
+
+do-test: # some testcases are known to fail: https://github.com/pydata/pandas-datareader/issues/500
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest pandas_datareader/tests
+
+.include <bsd.port.mk>
diff --git a/math/py-pandas-datareader/distinfo b/math/py-pandas-datareader/distinfo
new file mode 100644
index 000000000000..22da1aea83e7
--- /dev/null
+++ b/math/py-pandas-datareader/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1519808941
+SHA256 (pandas-datareader-0.6.0.tar.gz) = 47681336a3f6e6953b024bd73f8bb005f36e8df831ccce336e9fc601c587e3db
+SIZE (pandas-datareader-0.6.0.tar.gz) = 175013
diff --git a/math/py-pandas-datareader/pkg-descr b/math/py-pandas-datareader/pkg-descr
new file mode 100644
index 000000000000..81c1ac7403fa
--- /dev/null
+++ b/math/py-pandas-datareader/pkg-descr
@@ -0,0 +1,10 @@
+Extract financial data from a wide range of Internet sources into a Pandas
+DataFrame. This was previously found in Pandas (https://pandas.pydata.org) in
+pandas.io.data and pandas.io.wb.
+
+Where you previously used
+ from pandas.io import data, wb
+Now you should use
+ from pandas_datareader import data, wb
+
+WWW: https://github.com/pydata/pandas-datareader