~ruther/guix-local

035a359e80da191d231de18bd6349311a4481c9c — Nicolas Graves 2 years ago 71aa037
gnu: python-qemu-qmp: Improve package style.

* gnu/packages/virtualization.scm (python-qemu-qmp):
  [arguments]<#:phases>: Rewrite check phase replacement to only run
  tests/protocol.py and not quality-checks.

Change-Id: I3485e2ee10d46b1699674f506876e7c185674653
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
1 files changed, 5 insertions(+), 7 deletions(-)

M gnu/packages/virtualization.scm
M gnu/packages/virtualization.scm => gnu/packages/virtualization.scm +5 -7
@@ 2092,13 2092,11 @@ mainly implemented in user space.")
      #~(modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                ;; The Avocado test runner insists on writing stuff to HOME.
                (setenv "HOME" "/tmp")
                ;; The mypy tests fail (see:
                ;; https://gitlab.com/jsnow/qemu.qmp/-/issues/1).
                (delete-file "tests/mypy.sh")
                (invoke "avocado" "--show=all" "run" "tests")))))))
              (if tests?
                  (begin  ; avocado insists on writing stuff to HOME.
                    (setenv "HOME" "/tmp")
                    (invoke "avocado" "--show=all" "run" "tests/protocol.py"))
                  (format #t "test suite not run~%")))))))
    (native-inputs
     (list python-avocado-framework
           python-setuptools-scm