~ruther/guix-local

2fbb32650dc444c23e054182c04fed4e9cdc33de — Hartmut Goebel 6 months ago fbc4dc9
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
1 files changed, 15 insertions(+), 5 deletions(-)

M gnu/packages/tryton.scm
M gnu/packages/tryton.scm => gnu/packages/tryton.scm +15 -5
@@ 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")