git: 247718dd69ee - main - finance/py-python-coinmarketcap: New port: CoinMarketCap Python API Wrapper

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 01 Jan 2024 23:43:21 UTC
The branch main has been updated by yuri:

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

commit 247718dd69ee4d861c4f32f302b22d6073356196
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-01-01 19:40:19 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-01-01 23:43:14 +0000

    finance/py-python-coinmarketcap: New port: CoinMarketCap Python API Wrapper
---
 finance/Makefile                          |  1 +
 finance/py-python-coinmarketcap/Makefile  | 21 +++++++++++++++++++++
 finance/py-python-coinmarketcap/distinfo  |  3 +++
 finance/py-python-coinmarketcap/pkg-descr |  2 ++
 4 files changed, 27 insertions(+)

diff --git a/finance/Makefile b/finance/Makefile
index d89d8eda439d..98d6a737f20f 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -123,6 +123,7 @@
     SUBDIR += py-pycoingecko
     SUBDIR += py-python-binance
     SUBDIR += py-python-bitcoinlib
+    SUBDIR += py-python-coinmarketcap
     SUBDIR += py-python-obelisk
     SUBDIR += py-pytrends
     SUBDIR += py-quantecon
diff --git a/finance/py-python-coinmarketcap/Makefile b/finance/py-python-coinmarketcap/Makefile
new file mode 100644
index 000000000000..e37a4a561b53
--- /dev/null
+++ b/finance/py-python-coinmarketcap/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	python-coinmarketcap
+DISTVERSION=	0.5
+CATEGORIES=	finance python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	CoinMarketCap Python API Wrapper
+WWW=		https://github.com/rsz44/python-coinmarketcap
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.2.0:www/py-requests@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/finance/py-python-coinmarketcap/distinfo b/finance/py-python-coinmarketcap/distinfo
new file mode 100644
index 000000000000..de42b11b52c2
--- /dev/null
+++ b/finance/py-python-coinmarketcap/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1704137869
+SHA256 (python-coinmarketcap-0.5.tar.gz) = ffc93759b23a8bad366d1f4f3decb593fdd7451bd90b80db708a6e9108aa220b
+SIZE (python-coinmarketcap-0.5.tar.gz) = 13345
diff --git a/finance/py-python-coinmarketcap/pkg-descr b/finance/py-python-coinmarketcap/pkg-descr
new file mode 100644
index 000000000000..e00abede2d38
--- /dev/null
+++ b/finance/py-python-coinmarketcap/pkg-descr
@@ -0,0 +1,2 @@
+python-coinmarketcap is a non-official (but working) Python package to wrap the
+CoinMarketCap API. With this you can monitor and watch the crypto market.