diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2016-07-11 23:18:15 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2016-08-12 21:04:20 +0200 |
commit | 7cd2032f2499e9afdaedd82d98e889e18647c0db (patch) | |
tree | 949599241d3af18422ced034c19a2c3aa3c4e30a /gnu/packages/qemu.scm | |
parent | 597ea1223b9da0ebca8730ec491c252d3c82cbae (diff) | |
download | patches-7cd2032f2499e9afdaedd82d98e889e18647c0db.tar patches-7cd2032f2499e9afdaedd82d98e889e18647c0db.tar.gz |
gnu: Add python-libvirt.
* gnu/packages/qemu.scm (python-libvirt, python2-libvirt): New
variables.
Diffstat (limited to 'gnu/packages/qemu.scm')
-rw-r--r-- | gnu/packages/qemu.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/qemu.scm b/gnu/packages/qemu.scm index 957d8203e0..6d446017ad 100644 --- a/gnu/packages/qemu.scm +++ b/gnu/packages/qemu.scm @@ -49,6 +49,7 @@ #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (guix download) #:use-module ((guix licenses) #:select (gpl2 lgpl2.1+)) #:use-module (guix packages) @@ -368,3 +369,39 @@ three libraries: @end enumerate ") (license lgpl2.1+))) + +(define-public python-libvirt + (package + (name "python-libvirt") + (version "2.0.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "libvirt-python" version)) + (sha256 + (base32 + "0h0x5lpsx97bvw20pzfcsdmmivximddq4qmn8fk0n55dqv0wn5kq")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-nosetests-path + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("sys.executable, \"/usr/bin/nosetests\"") + (string-append "\"" (which "bash") "\", \"" + (which "nosetests") "\""))) + #t))))) + (inputs + `(("libvirt" ,libvirt) + ("python-lxml" ,python-lxml))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("python-nose" ,python-nose))) + (home-page "http://libvirt.org") + (synopsis "Python bindings to libvirt") + (description "This package provides Python bindings to the libvirt +virtualization library.") + (license lgpl2.1+))) + +(define-public python2-libvirt + (package-with-python2 python-libvirt)) |