~ruther/guix-local

bdf1dc9d9924fee8f1f01d50a9e9010cfe782d56 — Efraim Flashner 6 months ago d6daad2
gnu: khard: Update to 0.20.0.

* gnu/packages/mail.scm (khard): Update to 0.20.0.
[build-system]: Switch to pyproject-build-system.
[arguments]: Add test-flags to skip some tests.
[inputs]: Remove python-atomicwrites and python-unidecode.
[native-inputs]: Add python-pytest and python-setuptools.

Change-Id: I95a70042a8f153d7a983db49e6acd8430718fa71
1 files changed, 22 insertions(+), 13 deletions(-)

M gnu/packages/mail.scm
M gnu/packages/mail.scm => gnu/packages/mail.scm +22 -13
@@ 2840,27 2840,36 @@ maintained.")
(define-public khard
  (package
    (name "khard")
    (version "0.19.1")
    (version "0.20.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri name version))
              (sha256
               (base32
                "1464j728hjjpzlc89v4rbml3p4b38zp1igjd9yq3xnn3lc6hmwsr"))))
    (build-system python-build-system)
                "1l5xkdi0f8krvy407q4qzm2n96nyhcjjhdp7v5f0n18wy36353qp"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'install 'install-completions
           (lambda* (#:key outputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out"))
                    (zsh (string-append out "/share/zsh/site-functions")))
               (copy-recursively "misc/zsh" zsh)))))))
     (list
       #:test-flags
       #~(list "-k"
               (string-join
                 (list "not test_sorting_of_korean_names"
                       "test_sort_order_for_accentuated_names"
                       ;; These two only fail with pytest
                       "test_edit_source_file_without_modifications"
                       "test_simple_edit_without_modification")
                 " and not "))
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'install 'install-completions
             (lambda* (#:key outputs #:allow-other-keys)
               (let* ((out (assoc-ref outputs "out"))
                      (zsh (string-append out "/share/zsh/site-functions")))
                 (copy-recursively "misc/zsh" zsh)))))))
    (native-inputs
     (list python-setuptools-scm))
     (list python-pytest python-setuptools python-setuptools-scm))
    (inputs
     (list python-atomicwrites python-configobj python-ruamel.yaml
           python-unidecode python-vobject))
     (list python-configobj python-ruamel.yaml python-vobject))
    (synopsis "Console address book using CardDAV")
    (description "Khard is an address book for the console.  It creates, reads,
modifies and removes CardDAV address book entries at your local machine.  For