diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-05-05 13:21:41 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-05-31 14:53:41 -0400 |
commit | 5daac1a797240f643827baf31272e85c422d8595 (patch) | |
tree | e90c50ab7472ab904315978106f90cec8959f459 /gnu | |
parent | 6d398096e23dc940437c990c86f7043c78a77f8f (diff) | |
download | guix-patches-5daac1a797240f643827baf31272e85c422d8595.tar guix-patches-5daac1a797240f643827baf31272e85c422d8595.tar.gz |
gnu: Add python-qemu-qmp.
* gnu/packages/virtualization.scm (python-qemu-qmp): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/virtualization.scm | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 60dc0e7588..9a6791627b 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2020, 2021 Brice Waegeneire <brice@waegenei.re> ;;; Copyright © 2020 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2020, 2021 Marius Bakke <mbakke@fastmail.com> -;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> +;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org> ;;; Copyright © 2021 Leo Famulari <leo@famulari.name> ;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com> @@ -1655,6 +1655,50 @@ mainly implemented in user space.") ;; LGPLv2.1. (license (list license:gpl2 license:lgpl2.1)))) +(define-public python-qemu-qmp + (package + (name "python-qemu-qmp") + (version "0.0.0a0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "qemu.qmp" version)) + (sha256 + (base32 "1rpsbiwvngij6fjcc5cx1azcc4dxmm080crr31wc7jrm7i61p7c2")))) + (build-system python-build-system) + (arguments + (list + #:phases + #~(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"))))))) + (native-inputs + (list python-avocado-framework + python-setuptools-scm + python-flake8 + python-isort + python-pylint)) + (propagated-inputs + (list python-pygments + python-urwid + python-urwid-readline)) + (home-page "https://gitlab.com/jsnow/qemu.qmp") + (synopsis "QEMU Monitor Protocol Python library") + (description "@code{emu.qmp} is a +@url{https://gitlab.com/qemu-project/qemu/-/blob/master/docs/interop/qmp-intro.txt, +QEMU Monitor Protocol (QMP)} library written in Python. It is used to send +QMP messages to running QEMU emulators. It can be used to communicate with +QEMU emulators, the QEMU Guest Agent (QGA), the QEMU Storage Daemon (QSD), or +any other utility or application that speaks QMP.") + (license license:gpl2+))) + (define-public qmpbackup (package (name "qmpbackup") |