From a53ecd259193a5a172248eecd0e1f2a78b796092 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 26 Sep 2025 12:39:37 +0200 Subject: [PATCH] gnu: trytond-attendance: Update to 7.0.1 and switch to pyproject. * gnu/packages/tryton.scm(trytond-attendance): Update to 7.0.1. [build-system] Switch to pyproject-build-system. [arguments][phases][check] Use unittest for testing. Change-Id: I6e8a116fddba1244c459e4ced9e1019eb41a0771 --- gnu/packages/tryton.scm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 7c89cb25e2f9ed00c14201cba51bb00837e06032..32499ee62a2aebd31ff4e2dfb18e74268b14a169 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -1530,18 +1530,26 @@ analytic accounts on a sale line.") (define-public trytond-attendance (package (name "trytond-attendance") - (version "6.2.0") + (version "7.0.1") (source (origin (method url-fetch) (uri (pypi-uri "trytond_attendance" version)) (sha256 - (base32 "0g9b0x4zdz6djmd592ll8zj4q3lhz5gj97phc38kkzvwgvpq9xw2")))) - (build-system python-build-system) - (arguments (tryton-arguments "attendance")) + (base32 "1j5pldlgdkhllsqlnpjd4l56h933pyfwllxrfr1dd47730ky7rw9")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases #$(tryton-phases "attendance") + (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-timesheet" ,trytond-timesheet))) + (cons* trytond-timesheet + %standard-trytond-native-inputs)) (propagated-inputs (list trytond trytond-company)) (home-page "https://docs.tryton.org/projects/modules-attendance")