1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/finance/py-backtrader/Makefile
Steve Wills 0e897f6f30 finance/py-backtrader: add ta-lib support
PR:		238972
Submitted by:	m.tsatsenko@gmail.com (maintainer)
2019-07-06 18:15:29 +00:00

36 lines
916 B
Makefile

# Created by: Mikhail T. <m.tsatsenko@gmail.com>
# $FreeBSD$
PORTNAME= backtrader
PORTVERSION= 1.9.74.123
PORTREVISION= 1
CATEGORIES= finance python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= m.tsatsenko@gmail.com
COMMENT= Python Backtesting library for trading strategies
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
USES= python
USE_GITHUB= yes # Does not distribute sdist via PyPI
USE_PYTHON= autoplist concurrent distutils
OPTIONS_DEFINE= PLOTTING TALIB
PLOTTING_DESC= Support graphical plotting output
TALIB_DESC= ta-lib support via finance/py-ta-lib
PLOTTING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
TALIB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ta-lib>0:finance/py-ta-lib@${PY_FLAVOR}
NO_ARCH= yes
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v tests
.include <bsd.port.mk>