From ec78824d815f367034e8f172c9b6865231f8e4a3 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 21 Nov 2025 22:21:34 +0100 Subject: [PATCH] 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 --- 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 7e8ffea60120c13786784a01284498d44abf0b1b..2da3bab8ecaef037eb6e120c9167f9abb6f14878 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