guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: Add python-mt-940.


From: guix-commits
Subject: 02/02: gnu: Add python-mt-940.
Date: Tue, 15 Feb 2022 04:39:06 -0500 (EST)

lbraun pushed a commit to branch master
in repository guix.

commit ae03f401381e956c4c41b4cf495cbde964fa43d0
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Tue Feb 15 10:36:00 2022 +0100

    gnu: Add python-mt-940.
    
    * gnu/packages/python-xyz.scm (python-mt-940): New variable.
---
 gnu/packages/finance.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 5c08662f05..985eaa87f7 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1942,3 +1942,37 @@ providing common functions for the technical analysis of 
financial market data."
      "TA-Lib is a library providing common functions for the technical
 analysis of financial market data.")
     (license license:bsd-3)))
+
+(define-public python-mt-940
+  (package
+    (name "python-mt-940")
+    (version "4.23.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/WoLpH/mt940.git";)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0z9w1qalcphsck3j6vkrs7k47ah9zq2rv0lm9nmcsgwpyp59qkyf"))))
+    (properties '(("upstream-name" #{.}# "mt-940")))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+                      (when tests?
+                        ;; Remove custom --cov flags.
+                        (delete-file "pytest.ini")
+                        (invoke "pytest" "-vv")))))))
+    (native-inputs (list python-flake8
+                         python-pytest
+                         python-pyyaml))
+    (home-page "https://mt940.readthedocs.io/";)
+    (synopsis "Python parser for MT940-encoded SWIFT data")
+    (description
+     "A library to parse MT940 files, a bank account statement exchange
+format used by SWIFT.  It returns smart Python collections for statistics
+and manipulation.")
+    (license license:bsd-3)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]