From 0f22a96d9356e6307ef86ce9815a021374a34f6b Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Thu, 26 Aug 2021 00:22:50 +0200 Subject: [PATCH] gnu: Add python-ofxparse. * gnu/packages/python-xyz.scm (python-ofxparse): New variable. --- gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 79f651bdc7..c50e7355c4 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26721,3 +26721,37 @@ spreadsheet), CSV, TSV, XLS, XLSX (Microsoft Excel spreadsheet), and YAML.") (description "This package provides a module to parse Coded statement of account (CODA) files as defined be the Belgian Febelfin bank standard.") (license license:bsd-3))) + +(define-public python-ofxparse + (package + (name "python-ofxparse") + (version "0.21") + (source + (origin + (method url-fetch) + (uri (pypi-uri "ofxparse" version)) + (sha256 + (base32 "19y4sp5l9jqiqzzlbqdfiab42qx7d84n4xm4s7jfq397666vcyh5")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "nosetests" "-v"))))))) + (native-inputs + `(("python-nose" ,python-nose))) + (propagated-inputs + `(("python-beautifulsoup4" ,python-beautifulsoup4) + ("python-lxml" ,python-lxml) + ("python-six" ,python-six))) + (home-page "http://sites.google.com/site/ofxparse") + (synopsis "Tools for working with the OFX (Open Financial Exchange) file +format") + (description "@code{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 often provide account +statements in OFX files.") + (license license:expat)))