git: 832442a94237 - main - finance/py-investpy: New port: Financial Data Extraction from Investing.com with Python

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

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

commit 832442a942377b585ae516ebdc670665ce6bdb98
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-25 01:22:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-25 01:22:59 +0000

    finance/py-investpy: New port: Financial Data Extraction from Investing.com with Python
---
 finance/Makefile              |  1 +
 finance/py-investpy/Makefile  | 28 ++++++++++++++++++++++++++++
 finance/py-investpy/distinfo  |  3 +++
 finance/py-investpy/pkg-descr | 15 +++++++++++++++
 4 files changed, 47 insertions(+)

diff --git a/finance/Makefile b/finance/Makefile
index 3eca5c92f442..97334205ba90 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -101,6 +101,7 @@
     SUBDIR += py-ebaysdk
     SUBDIR += py-fundamentalanalysis
     SUBDIR += py-investiny
+    SUBDIR += py-investpy
     SUBDIR += py-mplfinance
     SUBDIR += py-ofxparse
     SUBDIR += py-pycoin
diff --git a/finance/py-investpy/Makefile b/finance/py-investpy/Makefile
new file mode 100644
index 000000000000..7595eb87d387
--- /dev/null
+++ b/finance/py-investpy/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	investpy
+PORTVERSION=	1.0.8
+CATEGORIES=	finance python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Financial Data Extraction from Investing.com with Python
+WWW=		https://investpy.readthedocs.io/
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}pandas>=0.25.1:math/py-pandas@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytz>=2019.3:devel/py-pytz@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.22.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}unidecode>=1.1.1:converters/py-unidecode@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
+
+USES=		python:3.7+
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/finance/py-investpy/distinfo b/finance/py-investpy/distinfo
new file mode 100644
index 000000000000..64e2c4b262d2
--- /dev/null
+++ b/finance/py-investpy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1671930368
+SHA256 (investpy-1.0.8.tar.gz) = 6a7632a94b484ee07cd54afd416bdc759cd905ba60c62dbb8a8d157229b267c6
+SIZE (investpy-1.0.8.tar.gz) = 4385102
diff --git a/finance/py-investpy/pkg-descr b/finance/py-investpy/pkg-descr
new file mode 100644
index 000000000000..13e76fef8a96
--- /dev/null
+++ b/finance/py-investpy/pkg-descr
@@ -0,0 +1,15 @@
+investpy is a Python package to retrieve data from Investing.com, which provides
+data retrieval from up to 39952 stocks, 82221 funds, 11403 ETFs, 2029 currency
+crosses, 7797 indices, 688 bonds, 66 commodities, 250 certificates, and 4697
+cryptocurrencies.
+
+investpy allows the user to download both recent and historical data from all
+the financial products indexed at Investing.com. It includes data from all over
+the world, from countries such as United States, France, India, Spain, Russia,
+or Germany, amongst many others.
+
+investpy seeks to be one of the most complete Python packages when it comes to
+financial data extraction to stop relying on public/private APIs since investpy
+is FREE and has NO LIMITATIONS. These are some of the features that currently
+lead investpy to be one of the most consistent packages when it comes to
+financial data retrieval.