git: aa19ea550912 - main - finance/py-finnhub-python: New port: Python API to access Finnhub

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 25 Dec 2022 09:57:53 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aa19ea5509129e68f1f7fcd421e62563a21d658e

commit aa19ea5509129e68f1f7fcd421e62563a21d658e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-25 07:02:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-25 09:57:38 +0000

    finance/py-finnhub-python: New port: Python API to access Finnhub
---
 finance/Makefile                    |  1 +
 finance/py-finnhub-python/Makefile  | 22 ++++++++++++++++++++++
 finance/py-finnhub-python/distinfo  |  3 +++
 finance/py-finnhub-python/pkg-descr | 10 ++++++++++
 4 files changed, 36 insertions(+)

diff --git a/finance/Makefile b/finance/Makefile
index a734ca741d4e..7c07b49e5443 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -100,6 +100,7 @@
     SUBDIR += py-bitcoin
     SUBDIR += py-ebaysdk
     SUBDIR += py-financedatabase
+    SUBDIR += py-finnhub-python
     SUBDIR += py-finvizfinance
     SUBDIR += py-fundamentalanalysis
     SUBDIR += py-investiny
diff --git a/finance/py-finnhub-python/Makefile b/finance/py-finnhub-python/Makefile
new file mode 100644
index 000000000000..e1da4b60e585
--- /dev/null
+++ b/finance/py-finnhub-python/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	finnhub-python
+PORTVERSION=	2.4.15
+CATEGORIES=	finance python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python API to access Finnhub
+WWW=		https://finnhub.io/docs/api
+
+LICENSE=	APACHE20
+
+PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.22.0:www/py-requests@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/finance/py-finnhub-python/distinfo b/finance/py-finnhub-python/distinfo
new file mode 100644
index 000000000000..ee1ccb3e1b8a
--- /dev/null
+++ b/finance/py-finnhub-python/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1671951327
+SHA256 (finnhub-python-2.4.15.tar.gz) = 5a9f9cb61571783ee8f49b770b4ce962e5af237ec9231824b8a8403bbdd0cef2
+SIZE (finnhub-python-2.4.15.tar.gz) = 7954
diff --git a/finance/py-finnhub-python/pkg-descr b/finance/py-finnhub-python/pkg-descr
new file mode 100644
index 000000000000..a995e362bc03
--- /dev/null
+++ b/finance/py-finnhub-python/pkg-descr
@@ -0,0 +1,10 @@
+financedatabase is a database of 300.000+ symbols containing Equities, ETFs,
+Funds, Indices, Currencies, Cryptocurrencies and Money Markets.
+
+As a private investor, the sheer amount of information that can be found on the
+internet is rather daunting. Trying to understand what type of companies or ETFs
+are available is incredibly challenging with there being millions of companies
+and derivatives available on the market. Sure, the most traded companies and
+ETFs can quickly be found simply because they are known to the public (for
+example, Microsoft, Tesla, S&P500 ETF or an All-World ETF). However, what else
+is out there is often unknown.