summaryrefslogtreecommitdiff
path: root/finance/py-alpha-vantage
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-12-26 12:07:19 -0800
committerYuri Victorovich <yuri@FreeBSD.org>2022-12-26 12:07:50 -0800
commit0f81236993c20222aec17f000da4e94962471a50 (patch)
tree47c79a1c99abdf3c21e2624972ffd31a3127c0ee /finance/py-alpha-vantage
parentwww/py-onetimepass: New port: Module for generating and validating HOTP and T... (diff)
finance/py-alpha-vantage: New port: Module to get stock data from the Alpha Vantage Api
Diffstat (limited to 'finance/py-alpha-vantage')
-rw-r--r--finance/py-alpha-vantage/Makefile31
-rw-r--r--finance/py-alpha-vantage/distinfo3
-rw-r--r--finance/py-alpha-vantage/pkg-descr8
3 files changed, 42 insertions, 0 deletions
diff --git a/finance/py-alpha-vantage/Makefile b/finance/py-alpha-vantage/Makefile
new file mode 100644
index 000000000000..b0180deb36c6
--- /dev/null
+++ b/finance/py-alpha-vantage/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= alpha-vantage
+DISTVERSION= 2.3.1
+CATEGORIES= finance python
+#MASTER_SITES= CHEESESHOP # no tests
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Module to get stock data from the Alpha Vantage Api
+WWW= https://github.com/RomelTorres/alpha_vantage
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>0:www/py-aiohttp@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_DEPENDS}
+RUN_DEPENDS= ${PY_DEPENDS}
+
+USES= python:3.8+
+USE_PYTHON= distutils autoplist pytest # tests fail to run, see https://github.com/RomelTorres/alpha_vantage/issues/340
+
+USE_GITHUB= yes
+GH_ACCOUNT= RomelTorres
+GH_PROJECT= alpha_vantage
+
+NO_ARCH= yes
+
+TEST_WRLSRC= ${WRKSRC}/test_alpha_vantage
+
+.include <bsd.port.mk>
diff --git a/finance/py-alpha-vantage/distinfo b/finance/py-alpha-vantage/distinfo
new file mode 100644
index 000000000000..ff3e7f22d27a
--- /dev/null
+++ b/finance/py-alpha-vantage/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672084829
+SHA256 (RomelTorres-alpha_vantage-2.3.1_GH0.tar.gz) = ceb46b8bfbba441f85d48b32649c7308280760bf970188707ba9248705dbeba7
+SIZE (RomelTorres-alpha_vantage-2.3.1_GH0.tar.gz) = 557043
diff --git a/finance/py-alpha-vantage/pkg-descr b/finance/py-alpha-vantage/pkg-descr
new file mode 100644
index 000000000000..986b0548cbad
--- /dev/null
+++ b/finance/py-alpha-vantage/pkg-descr
@@ -0,0 +1,8 @@
+alpha-vantage is a Python module to get stock data/cryptocurrencies from the
+Alpha Vantage API.
+
+Alpha Vantage delivers a free API for real time financial data and most used
+finance indicators in a simple json or pandas format. This module implements
+a python interface to the free API provided by Alpha Vantage. It requires a
+free API key, that can be requested from
+http://www.alphavantage.co/support/#api-key.