git: f6a4845f37eb - main - finance/py-pycoingecko: New port: Python wrapper around the CoinGecko API

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 13 Feb 2023 06:39:18 UTC
The branch main has been updated by yuri:

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

commit f6a4845f37eb2c01c2749dd5f9780a7f4db00d43
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-02-13 06:07:29 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-02-13 06:39:14 +0000

    finance/py-pycoingecko: New port: Python wrapper around the CoinGecko API
---
 finance/Makefile                 |  1 +
 finance/py-pycoingecko/Makefile  | 25 +++++++++++++++++++++++++
 finance/py-pycoingecko/distinfo  |  3 +++
 finance/py-pycoingecko/pkg-descr |  4 ++++
 4 files changed, 33 insertions(+)

diff --git a/finance/Makefile b/finance/Makefile
index b4fae6b8e223..d464035247c4 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -120,6 +120,7 @@
     SUBDIR += py-pandas-market-calendars
     SUBDIR += py-pandas-ta
     SUBDIR += py-pycoin
+    SUBDIR += py-pycoingecko
     SUBDIR += py-python-bitcoinlib
     SUBDIR += py-python-obelisk
     SUBDIR += py-quantecon
diff --git a/finance/py-pycoingecko/Makefile b/finance/py-pycoingecko/Makefile
new file mode 100644
index 000000000000..639f2f5e003b
--- /dev/null
+++ b/finance/py-pycoingecko/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	pycoingecko
+DISTVERSION=	3.1.0
+CATEGORIES=	finance python
+#MASTER_SITES=	PYPI # no tests
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python wrapper around the CoinGecko API
+WWW=		https://github.com/man-c/pycoingecko
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENCE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}responses>0:devel/py-responses@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	man-c
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/finance/py-pycoingecko/distinfo b/finance/py-pycoingecko/distinfo
new file mode 100644
index 000000000000..69ad45d7da03
--- /dev/null
+++ b/finance/py-pycoingecko/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1676267813
+SHA256 (man-c-pycoingecko-3.1.0_GH0.tar.gz) = 577866265a06a8791a7f30163992c81a9b4baa1bd0e1510520bc9da142115e12
+SIZE (man-c-pycoingecko-3.1.0_GH0.tar.gz) = 13783
diff --git a/finance/py-pycoingecko/pkg-descr b/finance/py-pycoingecko/pkg-descr
new file mode 100644
index 000000000000..511715400773
--- /dev/null
+++ b/finance/py-pycoingecko/pkg-descr
@@ -0,0 +1,4 @@
+pycoingecko is Pi ython wrapper for the CoinGecko API.
+
+CoinGecko provides information about cryptocurrency prices, excghange rates,
+market caps, etc.