guix_mirror_bot pushed a commit to branch master
in repository guix.

commit ec78824d815f367034e8f172c9b6865231f8e4a3
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Nov 21 22:21:34 2025 +0100

    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 <[email protected]>
---
 gnu/packages/python-xyz.scm | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7e8ffea601..2da3bab8ec 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -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

Reply via email to