~ruther/guix-local

ec78824d815f367034e8f172c9b6865231f8e4a3 — Nicolas Graves 4 months ago 265ed14
gnu: python-febelfin-coda: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-febelfin-coda):
[source]: Switch to hg-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:test-backend>: Run with unittest.
<#:phases>: Add phase 'remove-installed-tests.
[native-inputs]: Add python-setuptools.
[description]: Improve style.

Change-Id: I5cfb35f13d04ff4739aaa427e6b2d2f8c6ae4207
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 22 insertions(+), 6 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +22 -6
@@ 33501,15 33501,31 @@ spreadsheet), CSV, TSV, XLS, XLSX (Microsoft Excel spreadsheet), and YAML.")
    (version "0.3.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "febelfin-coda" version))
       (method hg-fetch)
       (uri (hg-reference
              (url "https://foss.heptapod.net/tryton/coda")
              (changeset version)))
       (file-name (string-append name "-" version "-checkout"))
       (sha256
        (base32 "0qzv0irmpay2n46an0sa37c9kwy8108phij5ix6rkllrfjmqdpfw"))))
    (build-system python-build-system)
        (base32 "0rnr2xvwr174dbjixaw5h8bjw5ay5knfbry5qhk7wj8vkh538c13"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'unittest
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'install 'remove-installed-tests
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (with-directory-excursion (site-packages inputs outputs)
                (for-each delete-file
                          (list "coda/test.py"
                                "coda/test_readme.py"))))))))
    (native-inputs (list python-setuptools))
    (home-page "https://coda.b2ck.com/")
    (synopsis "Module to parse Belgian CODA files")
    (description "This package provides a module to parse Coded statement of
account (CODA) files as defined be the Belgian Febelfin bank standard.")
    (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