Index: finance/Makefile =================================================================== --- finance/Makefile +++ finance/Makefile @@ -93,6 +93,7 @@ SUBDIR += prestashop SUBDIR += py-backtrader SUBDIR += py-bitcoin + SUBDIR += py-ofxparse SUBDIR += py-pycoin SUBDIR += py-python-bitcoinlib SUBDIR += py-python-obelisk Index: finance/py-ofxparse/Makefile =================================================================== --- /dev/null +++ finance/py-ofxparse/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= ofxparse +DISTVERSION= 0.20 +CATEGORIES= finance python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= vishwin@vishwin.info +COMMENT= Tools for working with the OFX (Open Financial Exchange) file format + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4:www/py-beautifulsoup@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} +TEST_DEPENDS= nosetests-${PYTHON_VER}:devel/py-nose@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include Index: finance/py-ofxparse/distinfo =================================================================== --- /dev/null +++ finance/py-ofxparse/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1560407440 +SHA256 (ofxparse-0.20.tar.gz) = eb45db5802938ac0ab3664418ca564619cc9e7ec6d301c1063ffc16e587ec37e +SIZE (ofxparse-0.20.tar.gz) = 53178 Index: finance/py-ofxparse/pkg-descr =================================================================== --- /dev/null +++ finance/py-ofxparse/pkg-descr @@ -0,0 +1,11 @@ +ofxparse is a parser for Open Financial Exchange (.ofx) format +files. OFX files are available from almost any online banking site, +so they work well if you want to pull together your finances from +multiple sources. Online trading accounts also provide account +statements in OFX files. + +There are three different types of OFX files, called BankAccount, +CreditAccount and InvestmentAccount files. This library has been +tested with real-world samples of all three types. + +WWW: https://github.com/jseutter/ofxparse