From 594579ddb994a005a664ac284ada4adf0a205252 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 26 Sep 2025 12:17:12 +0200 Subject: [PATCH] gnu: trytond-account-payment: Update to 7.0.4 and switch to pyproject. * gnu/packages/tryton.scm(trytond-account-payment): Update to 7.0.4. [build-system] Switch to pyproject-build-system. [arguments][phases][check]: Use unittest for running tests. [native-inputs]: Add trytond-account-dunning, trytond-account-statement and trytond-account-statement-rule. Change-Id: I4302cdb6ed6082284e82045c1668a001ad4ffa21 --- gnu/packages/tryton.scm | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 5b52053564d870988a4c90a486892b624d9d99ae..1f18815f2d6dea3a93ab9f076f9a7d9479321722 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -871,18 +871,29 @@ view that displays move lines grouped.") (define-public trytond-account-payment (package (name "trytond-account-payment") - (version "6.2.2") + (version "7.0.4") (source (origin (method url-fetch) (uri (pypi-uri "trytond_account_payment" version)) (sha256 - (base32 "0gsg53fiqdmrdpckpfh5sm56ycqjdpa26calmng4p0v2rz557l1f")))) - (build-system python-build-system) - (arguments (tryton-arguments "account_payment")) + (base32 "06hm5lwp3y9azzjwwrk52r28qw5hv440wn42iv5xg50jm4dzag8d")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases #$(tryton-phases "account_payment") + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; DB_CACHE and pytest don't work together here + (invoke "python" "-m" "unittest" "discover"))))))) (native-inputs - `(,@(%standard-trytond-native-inputs) - ("trytond-account-invoice" ,trytond-account-invoice))) + (cons* trytond-account-dunning + trytond-account-invoice + trytond-account-statement + trytond-account-statement-rule + %standard-trytond-native-inputs)) (propagated-inputs (list trytond trytond-account trytond-company trytond-currency trytond-party))