Skip to content

Commit

Permalink
finance/py-TA-Lib: New port: Python wrapper for TA-LIB based on Cython
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict committed Dec 26, 2022
1 parent 32928d2 commit b63fed6
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions finance/Makefile
Expand Up @@ -96,6 +96,7 @@
SUBDIR += pear_Payment_DTA
SUBDIR += prestashop
SUBDIR += py-Nasdaq-Data-Link
SUBDIR += py-TA-Lib
SUBDIR += py-backtrader
SUBDIR += py-bitcoin
SUBDIR += py-ebaysdk
Expand Down
28 changes: 28 additions & 0 deletions finance/py-TA-Lib/Makefile
@@ -0,0 +1,28 @@
PORTNAME= TA-Lib # provides Python namespace 'talib'
DISTVERSION= 0.4.25
CATEGORIES= finance python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= yuri@FreeBSD.org
COMMENT= Python wrapper for TA-LIB based on Cython
WWW= https://mrjbq7.github.io/ta-lib/

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYNUMPY}
LIB_DEPENDS= libta_lib.so:devel/ta-lib
RUN_DEPENDS= ${PYNUMPY}
#TEST_DEPENDS= misc/py-polars - fails to build, see https://github.com/rust-lang/hashbrown/issues/377

USES= python
USE_PYTHON= distutils cython autoplist pytest

TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
TEST_WRKSRC= ${WRKSRC}/talib

post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/talib/_ta_lib${PYTHON_EXT_SUFFIX}.so

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions finance/py-TA-Lib/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1672030248
SHA256 (TA-Lib-0.4.25.tar.gz) = 6c51c09fcc138367483bcce6db81329ae6851e6ca1a8ac1e50732e443d15602b
SIZE (TA-Lib-0.4.25.tar.gz) = 271960
8 changes: 8 additions & 0 deletions finance/py-TA-Lib/pkg-descr
@@ -0,0 +1,8 @@
Python-TA-Lib is a Python wrapper for TA-LIB based on Cython instead of SWIG.

TA-Lib is widely used by trading software developers requiring to perform
technical analysis of financial market data.
* Includes 150+ indicators such as ADX, MACD, RSI, Stochastic, Bollinger Bands,
etc.
* Candlestick pattern recognition
* Open-source API for C/C++, Java, Perl, Python and 100% Managed .NET

0 comments on commit b63fed6

Please sign in to comment.