From 2fbb32650dc444c23e054182c04fed4e9cdc33de Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 26 Sep 2025 12:52:20 +0200 Subject: [PATCH] gnu: trytond-production: Update to 7.0.4 and switch to pyproject. * gnu/packages/tryton.scm(trytond-production): Update to 7.0.4. [build-system] Switch to pyproject-build-system. [arguments] Use unittest for testing. [native-inputs]: Add trytond-stock-lot. Change-Id: I730b51b47c0190055d52f744c55766620f3d8580 --- gnu/packages/tryton.scm | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 43c11e42e3d912496a89034782bc80c5963e7559..fd47a8e2e820fbea8685a7b3d71be44c1ae2a2fe 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -2657,16 +2657,26 @@ which contains the unit price computed by the parent price list.") (define-public trytond-production (package (name "trytond-production") - (version "6.2.1") + (version "7.0.4") (source (origin (method url-fetch) (uri (pypi-uri "trytond_production" version)) (sha256 - (base32 "1sjrpyh4cxllmcxh085nfkq4hhdaz2mcgs1x9hwcsk9scqbi8fkw")))) - (build-system python-build-system) - (arguments (tryton-arguments "production")) - (native-inputs (%standard-trytond-native-inputs)) + (base32 "1jlhipmcvr09xdjh8f6qzmfas5yjii31ymhb2cgkp52b1kp563xw")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases #$(tryton-phases "production") + (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 + (cons* trytond-stock-lot + %standard-trytond-native-inputs)) (propagated-inputs (list trytond trytond-company trytond-product trytond-stock)) (home-page "https://docs.tryton.org/projects/modules-production")