920f47ebcc
A feature-rich Python framework for backtesting and trading. backtrader allows you to focus on writing reusable trading strategies, indicators and analyzers instead of having to spend time building infrastructure. WWW: https://www.backtrader.com/ WWW: https://github.com/backtrader/backtrader PR: 238572 Submitted by: <m.tsatsenko gmail com>
32 lines
763 B
Makefile
32 lines
763 B
Makefile
# Created by: Mikhail T. <m.tsatsenko@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= backtrader
|
|
PORTVERSION= 1.9.74.123
|
|
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
|
|
|
|
PLOTTING_DESC= Support graphical plotting output
|
|
|
|
PLOTTING_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR}
|
|
|
|
NO_ARCH= yes
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v tests
|
|
|
|
.include <bsd.port.mk>
|