~ruther/guix-local

a53ecd259193a5a172248eecd0e1f2a78b796092 — Hartmut Goebel 7 months ago e7f439d
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
1 files changed, 14 insertions(+), 6 deletions(-)

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