[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/18: gnu: python-libvirt: Update to 7.3.0.
From: |
guix-commits |
Subject: |
15/18: gnu: python-libvirt: Update to 7.3.0. |
Date: |
Tue, 18 May 2021 10:38:44 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 8ac0d4fb4e7c3ce48ca0742a293288ca8cb05be4
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue May 18 15:57:47 2021 +0200
gnu: python-libvirt: Update to 7.3.0.
* gnu/packages/virtualization.scm (python-libvirt): Update to 7.3.0.
[arguments]: Remove obsolete 'patch-nosetests-path phase.
Replace the default 'check phase.
[native-inputs]: Switch from python-nose to python-pytest, like upstream
has done.
---
gnu/packages/virtualization.scm | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index f2fcfeb..f12f862 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -1197,33 +1197,34 @@ three libraries:
(define-public python-libvirt
(package
(name "python-libvirt")
- (version "7.2.0")
+ (version "7.3.0")
(source
(origin
(method url-fetch)
(uri (string-append "https://libvirt.org/sources/python/libvirt-python-"
version ".tar.gz"))
(sha256
- (base32 "1ryfimhf47s9k4n0gys233bh15l68fccs2bvj8bjwqjm9k2vmhy0"))))
+ (base32 "15pn8610ybf03xff3vbz3apz2ph42k2kh6k19r020l9nvc6jcv37"))))
(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"
- (("\"/usr/bin/nosetests\"")
- (string-append "\"" (which "nosetests") "\""))
- (("self\\.spawn\\(\\[sys\\.executable, nose\\]\\)")
- (format #f "self.spawn([\"~a\", nose])" (which "bash"))))
- #t)))))
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ ;; No reason to explicity invoke Python on a wrapped pytest.
+ (substitute* "setup.py"
+ (("sys\\.executable, pytest") "pytest"))
+ (add-installed-pythonpath inputs outputs)
+ (setenv "LIBVIRT_API_COVERAGE" "whynot")
+ (invoke "python" "setup.py" "test")))))))
(inputs
`(("libvirt" ,libvirt)))
(propagated-inputs
`(("python-lxml" ,python-lxml)))
(native-inputs
`(("pkg-config" ,pkg-config)
- ("python-nose" ,python-nose)))
+ ("python-pytest" ,python-pytest)))
(home-page "https://libvirt.org")
(synopsis "Python bindings to libvirt")
(description "This package provides Python bindings to the libvirt
- branch master updated (b72e27c -> 8884743), guix-commits, 2021/05/18
- 02/18: gnu: Add libeatmydata., guix-commits, 2021/05/18
- 03/18: gnu: libmwaw: Update to 0.3.19., guix-commits, 2021/05/18
- 08/18: gnu: btrfs-progs: Update to 5.12.1., guix-commits, 2021/05/18
- 10/18: gnu: youtube-dl: Update to 2021.05.16., guix-commits, 2021/05/18
- 01/18: Revert "vm: Autoload (gnu build vm).", guix-commits, 2021/05/18
- 09/18: gnu: qtractor: Update to 0.9.22., guix-commits, 2021/05/18
- 06/18: gnu: samplv1: Update to 0.9.22., guix-commits, 2021/05/18
- 11/18: gnu: nix: Update to 2.3.11., guix-commits, 2021/05/18
- 15/18: gnu: python-libvirt: Update to 7.3.0.,
guix-commits <=
- 04/18: gnu: samplv1: Update to 0.9.22., guix-commits, 2021/05/18
- 05/18: gnu: drumkv1: Update to 0.9.22., guix-commits, 2021/05/18
- 07/18: gnu: padthv1: Update to 0.9.22., guix-commits, 2021/05/18
- 12/18: gnu: rxvt-unicode: Update to 9.26., guix-commits, 2021/05/18
- 14/18: gnu: libvirt: Update to 7.3.0., guix-commits, 2021/05/18
- 13/18: gnu: herbstluftwm: Update to 0.9.3., guix-commits, 2021/05/18
- 16/18: gnu: python-pyprind: Update to 2.11.3., guix-commits, 2021/05/18
- 18/18: gnu: jose: Update to 11., guix-commits, 2021/05/18
- 17/18: gnu: python-pdftotext: Update to 2.1.6., guix-commits, 2021/05/18