aboutsummaryrefslogtreecommitdiff
path: root/finance
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2019-06-24 03:17:03 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2019-06-24 03:17:03 +0000
commit920f47ebcce0b1323535f4e16115791d0008cae5 (patch)
treee01d6b5bb1c17ade1a55a647aa43e082fa8ff315 /finance
parent06ecbc3ce20e5d1c4a8d00dcd64d854434a81da8 (diff)
downloadports-920f47ebcce0b1323535f4e16115791d0008cae5.tar.gz
ports-920f47ebcce0b1323535f4e16115791d0008cae5.zip
Notes
Diffstat (limited to 'finance')
-rw-r--r--finance/Makefile1
-rw-r--r--finance/py-backtrader/Makefile32
-rw-r--r--finance/py-backtrader/distinfo3
-rw-r--r--finance/py-backtrader/pkg-descr8
4 files changed, 44 insertions, 0 deletions
diff --git a/finance/Makefile b/finance/Makefile
index 5b9ef55d16a5..186483ab5eea 100644
--- a/finance/Makefile
+++ b/finance/Makefile
@@ -92,6 +92,7 @@
SUBDIR += p5-PayflowPro
SUBDIR += pear_Payment_DTA
SUBDIR += prestashop
+ SUBDIR += py-backtrader
SUBDIR += py-bitcoin
SUBDIR += py-pycoin
SUBDIR += py-python-bitcoinlib
diff --git a/finance/py-backtrader/Makefile b/finance/py-backtrader/Makefile
new file mode 100644
index 000000000000..75f73b1a0795
--- /dev/null
+++ b/finance/py-backtrader/Makefile
@@ -0,0 +1,32 @@
+# 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>
diff --git a/finance/py-backtrader/distinfo b/finance/py-backtrader/distinfo
new file mode 100644
index 000000000000..af77ad7e8a60
--- /dev/null
+++ b/finance/py-backtrader/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1560584331
+SHA256 (backtrader-backtrader-1.9.74.123_GH0.tar.gz) = a8467a2279697c190b35afd6e4826329ababb0ac7a5d73e12eca80559e1ced6d
+SIZE (backtrader-backtrader-1.9.74.123_GH0.tar.gz) = 2175081
diff --git a/finance/py-backtrader/pkg-descr b/finance/py-backtrader/pkg-descr
new file mode 100644
index 000000000000..8344f165f2c2
--- /dev/null
+++ b/finance/py-backtrader/pkg-descr
@@ -0,0 +1,8 @@
+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