From ee6cd9eeae1e7d9b8a105c273f586b072eb4517e Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 26 Sep 2025 12:08:14 +0200 Subject: [PATCH] gnu: trytond-account-fr: Update to 7.0.0 and switch to pyproject. * gnu/packages/tryton.scm(trytond-account-fr): Update to 7.0.0. [build-system] Switch to pyproject-build-system. [arguments][phases][check]: Use unittest for testing. Change-Id: Ia796a0475142a82d263b843e31defd4793ae24f2 --- gnu/packages/tryton.scm | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 120c87e314990f6938d064822e27d153b896e914..dcffb2ea120034ef3f8697a57b0822d0c5e29a52 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -615,16 +615,24 @@ accounting requirements in Europe. It includes: (define-public trytond-account-fr (package (name "trytond-account-fr") - (version "6.2.0") + (version "7.0.0") (source (origin (method url-fetch) (uri (pypi-uri "trytond_account_fr" version)) (sha256 - (base32 "18wmijaxah125skhgpqc7iaw6a8md5mpv7m5yazcrscx9pk1z5jz")))) - (build-system python-build-system) - (arguments (tryton-arguments "account_fr")) - (native-inputs (%standard-trytond-native-inputs)) + (base32 "0cigsrh2d2bj9h87lxmi8hancghwhxs3mam581knygi8r4n1c7aj")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases #$(tryton-phases "account_fr") + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; doctests uses '__file__' which is unset in pytest + (invoke "python" "-m" "unittest" "discover"))))))) + (native-inputs %standard-trytond-native-inputs) (propagated-inputs (list trytond trytond-account trytond-party-siret)) (home-page "https://docs.tryton.org/projects/modules-account-fr")