blob: 49af7cbea6bc0f47120a564b1827a39f6dc83ffc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
PORTNAME= bt
DISTVERSIONPREFIX= v
DISTVERSION= 1.1.2
PORTREVISION= 1
CATEGORIES= finance python
#MASTER_SITES= PYPI # no tests
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Flexible backtesting framework to test quantitative trading strategies
WWW= http://pmorissette.github.io/bt/ \
https://github.com/pmorissette/bt
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ffn>=1.1.2:finance/py-ffn@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyprind>=2.11:misc/py-pyprind@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tqdm>=4:misc/py-tqdm@${PY_FLAVOR}
USES= python
USE_PYTHON= distutils cython autoplist pytest
USE_GITHUB= yes
GH_ACCOUNT= pmorissette
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/bt/core${PYTHON_TAG}.so
# tests as of 1.1.2: 157 passed, 1 warning in 24.95s
.include <bsd.port.mk>
|