Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2022 01:23:12 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 97671ac78026 - main - finance/py-investiny: New port: Investiny is faster, lighter, and easier to use than investpy
Message-ID:  <202212250123.2BP1NCjX028977@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit 97671ac7802682b95181b0174af4ede0afa05e0a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-25 01:01:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-25 01:22:58 +0000

    finance/py-investiny: New port: Investiny is faster, lighter, and easier to use than investpy
---
 finance/Makefile               |  1 +
 finance/py-investiny/Makefile  | 27 +++++++++++++++++++++++++++
 finance/py-investiny/distinfo  |  3 +++
 finance/py-investiny/pkg-descr |  3 +++
 4 files changed, 34 insertions(+)

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 <bsd.port.mk>
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212250123.2BP1NCjX028977>