diff --git a/finance/Makefile b/finance/Makefile index b28c824bca36..3eca5c92f442 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -100,6 +100,7 @@ SUBDIR += py-bitcoin SUBDIR += py-ebaysdk SUBDIR += py-fundamentalanalysis + SUBDIR += py-investiny SUBDIR += py-mplfinance SUBDIR += py-ofxparse SUBDIR += py-pycoin diff --git a/finance/py-investiny/Makefile b/finance/py-investiny/Makefile new file mode 100644 index 000000000000..581ccb54d56d --- /dev/null +++ b/finance/py-investiny/Makefile @@ -0,0 +1,27 @@ +PORTNAME= investiny +PORTVERSION= 0.7.2 +CATEGORIES= finance python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Investiny is faster, lighter, and easier to use than investpy +WWW= https://alvarobartt.github.io/investiny/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.15.0:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic>=1.10.2:devel/py-pydantic@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= python:3.8+ +USE_PYTHON= distutils autoplist + +NO_ARCH= yes + +post-patch: + @${ECHO_CMD} 'from setuptools import setup; setup()' > ${WRKSRC}/setup.py + +.include diff --git a/finance/py-investiny/distinfo b/finance/py-investiny/distinfo new file mode 100644 index 000000000000..788a60a2af5b --- /dev/null +++ b/finance/py-investiny/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1671929270 +SHA256 (investiny-0.7.2.tar.gz) = cdbcfea73f93df20fb3c9d7fd6ea58e5f7e248ba0d130167d27f606cc09e76bf +SIZE (investiny-0.7.2.tar.gz) = 9610 diff --git a/finance/py-investiny/pkg-descr b/finance/py-investiny/pkg-descr new file mode 100644 index 000000000000..bcd8a7d7cfeb --- /dev/null +++ b/finance/py-investiny/pkg-descr @@ -0,0 +1,3 @@ +investiny has been created due to the latest Investing.com changes +in their API protection protocols, as now their main APIs are +Cloudflare V2 protected.