From 265ed14608b3b6c72a3eb71867f60998c5331dd5 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 21 Nov 2025 22:08:24 +0100 Subject: [PATCH] gnu: python-csb43: Update to 1.0.0. * gnu/packages/python-xyz.scm (python-csb43): Update to 1.0.0. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments] : Add 'set-version. [native-inputs]: Add python-pytest, python-setuptools, python-setuptools-scm. [propagated-inputs]: Add python-deprecated. [description]: Improve style. (python-csb43-0.10): New variable. * gnu/packages/tryton.scm (trytond-account-statement-aeb43): [propagated-inputs]: Remove python-csb43; add python-csb43-0.10. Change-Id: I8b5ded93c65cba895bfee00949ebb0832087db5d Modified-by: Sharlatan Hellseher Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 63 +++++++++++++++++++++++++++++++------ gnu/packages/tryton.scm | 2 +- 2 files changed, 54 insertions(+), 11 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6d51f843e50e4d73de977dfb16279fd74764a717..7e8ffea60120c13786784a01284498d44abf0b1b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -33429,29 +33429,72 @@ a Python program in an customizable and pythonic way.") (define-public python-csb43 (package (name "python-csb43") - (version "0.9.1") + (version "1.0.0") (source (origin - (method url-fetch) - (uri (pypi-uri "csb43" version)) + (method git-fetch) + (uri (git-reference + (url "https://bitbucket.org/wmj/csb43") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0r0csl9npncnkfafg3rg6xr38d1qr0sxvq7wn7mg9bq41hvvh1si")))) - (build-system python-build-system) + (base32 "030lncdmrcvzgp8v1jw04snnplqxlwf3vikzd0a3jbk5sgrp2cih")))) + (build-system pyproject-build-system) + (arguments + (list + ;; tests: 15102 passed, 36 skipped, 5489 warnings + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))) (native-inputs - (list python-lxml)) + (list python-lxml + python-pytest + python-setuptools + python-setuptools-scm)) (propagated-inputs - (list python-pycountry python-pyyaml python-tablib)) + (list python-deprecated + python-pycountry + python-pyyaml + python-tablib)) (home-page "https://bitbucket.org/wmj/csb43") (synopsis "Tools for converting from the Spanish banks' format CSB norm 43 (CSB43)") - (description "This package provides tools to convert files in the format -used by multiple Spanish banks (standard 43 of the Spanish Banking Council -[CSB43] / Spanish Banking Association [AEB43]) to other formats. + (description + "This package provides tools to convert files in the format used by +multiple Spanish banks (standard 43 of the Spanish Banking Council [CSB43] / +Spanish Banking Association [AEB43]) to other formats. Supported output formats are: OFX, HomeBank CSV, HTML, JSON, ODS (OpenDocument spreadsheet), CSV, TSV, XLS, XLSX (Microsoft Excel spreadsheet), and YAML.") (license license:lgpl3))) +(define-public python-csb43-0.10 + ;; XXX: 1.0.0 doesn't provide csb43 module where 0.10.1 contains: aeb43, csb43, + ;; homebank, i18n, ofx, and utils. + (package + (inherit python-csb43) + (name "python-csb43") + (version "0.10.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://bitbucket.org/wmj/csb43") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0frxcclz7scpndrr7ygqy6k41bcwgwam26yk7n1cnwyim2wkaykd")))) + (arguments + (list + ;; tests: 15493 passed, 37 skipped, 7447 warnings + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))))))) + (define-public python-febelfin-coda (package (name "python-febelfin-coda") diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 31128fa250eae65f5b8e7ead247ef7534c9beecf..3ed4247387062a313a77addf8cec2170021044ed 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -1232,7 +1232,7 @@ statements. Statement can be used for bank statement, cash daybook etc.") (arguments (tryton-arguments "account_statement_aeb43")) (native-inputs %standard-trytond-native-inputs) (propagated-inputs - (list python-csb43 trytond trytond-account-statement trytond-bank)) + (list python-csb43-0.10 trytond trytond-account-statement trytond-bank)) (home-page "https://docs.tryton.org/projects/modules-account-statement-aeb43") (synopsis "Tryton module to import AEB43 statements")