git: 423285aa50d3 - main - finance/py-pandas-ta: New port: Market Technical Analysis indicators in Python and Pandas
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Dec 2022 06:13:24 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=423285aa50d311fa092860586e676953c7920306
commit 423285aa50d311fa092860586e676953c7920306
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-26 06:12:44 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-26 06:13:15 +0000
finance/py-pandas-ta: New port: Market Technical Analysis indicators in Python and Pandas
---
finance/Makefile | 1 +
finance/py-pandas-ta/Makefile | 32 ++++++++++++++++++++++++++++++++
finance/py-pandas-ta/distinfo | 3 +++
finance/py-pandas-ta/pkg-descr | 7 +++++++
4 files changed, 43 insertions(+)
diff --git a/finance/Makefile b/finance/Makefile
index 706d444c0c6f..e595d128ce5e 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -111,6 +111,7 @@
SUBDIR += py-mplfinance
SUBDIR += py-ofxparse
SUBDIR += py-pandas-market-calendars
+ SUBDIR += py-pandas-ta
SUBDIR += py-pycoin
SUBDIR += py-python-bitcoinlib
SUBDIR += py-python-obelisk
diff --git a/finance/py-pandas-ta/Makefile b/finance/py-pandas-ta/Makefile
new file mode 100644
index 000000000000..99a9a518145b
--- /dev/null
+++ b/finance/py-pandas-ta/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= pandas-ta
+DISTVERSION= 0.3.14
+CATEGORIES= finance python
+#MASTER_SITES= CHEESESHOP # no tests
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ${PORTNAME:S/-/_/}-${DISTVERSION}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Market Technical Analysis indicators in Python and Pandas
+WWW= https://twopirllc.github.io/pandas-ta/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
+ ${PYNUMPY} \
+ ${PYTHON_PKGNAMEPREFIX}pandas>=1.2.0:math/py-pandas@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytz>=2021.1:devel/py-pytz@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}six>=1.16.0:devel/py-six@${PY_FLAVOR}
+BUILD_DEPENDS= ${PY_DEPENDS}
+RUN_DEPENDS= ${PY_DEPENDS}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}TA-Lib>0:finance/py-TA-Lib@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= distutils autoplist pytest # 1 test fails, see https://github.com/twopirllc/pandas-ta/issues/631
+
+USE_GITHUB= yes
+GH_ACCOUNT= twopirllc
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/finance/py-pandas-ta/distinfo b/finance/py-pandas-ta/distinfo
new file mode 100644
index 000000000000..9aa39af76979
--- /dev/null
+++ b/finance/py-pandas-ta/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672029264
+SHA256 (twopirllc-pandas-ta-0.3.14_GH0.tar.gz) = 7f6e22d30b363711865c6d4a314e4b9cff475c3e5cd3c5d31435f9041e2fb27c
+SIZE (twopirllc-pandas-ta-0.3.14_GH0.tar.gz) = 3057395
diff --git a/finance/py-pandas-ta/pkg-descr b/finance/py-pandas-ta/pkg-descr
new file mode 100644
index 000000000000..35ca65dce808
--- /dev/null
+++ b/finance/py-pandas-ta/pkg-descr
@@ -0,0 +1,7 @@
+Pandas Technical Analysis (Pandas TA) is an easy to use library that leverages
+the Pandas package with more than 130 Indicators and Utility functions and more
+than 60 TA Lib Candlestick Patterns. Many commonly used indicators are included,
+such as: Candle Pattern(cdl_pattern), Simple Moving Average (sma) Moving Average
+Convergence Divergence (macd), Hull Exponential Moving Average (hma), Bollinger
+Bands (bbands), On-Balance Volume (obv), Aroon & Aroon Oscillator (aroon),
+Squeeze (squeeze) and many more.