Archived
1
0
Fork 0

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.
This commit is contained in:
Tobias Geerinckx-Rice 2021-05-18 15:57:47 +02:00
parent 8cec10f602
commit 8ac0d4fb4e
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -1197,33 +1197,34 @@ three libraries:
(define-public python-libvirt (define-public python-libvirt
(package (package
(name "python-libvirt") (name "python-libvirt")
(version "7.2.0") (version "7.3.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://libvirt.org/sources/python/libvirt-python-" (uri (string-append "https://libvirt.org/sources/python/libvirt-python-"
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
(base32 "1ryfimhf47s9k4n0gys233bh15l68fccs2bvj8bjwqjm9k2vmhy0")))) (base32 "15pn8610ybf03xff3vbz3apz2ph42k2kh6k19r020l9nvc6jcv37"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'patch-nosetests-path (replace 'check
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs outputs tests? #:allow-other-keys)
(substitute* "setup.py" (when tests?
(("\"/usr/bin/nosetests\"") ;; No reason to explicity invoke Python on a wrapped pytest.
(string-append "\"" (which "nosetests") "\"")) (substitute* "setup.py"
(("self\\.spawn\\(\\[sys\\.executable, nose\\]\\)") (("sys\\.executable, pytest") "pytest"))
(format #f "self.spawn([\"~a\", nose])" (which "bash")))) (add-installed-pythonpath inputs outputs)
#t))))) (setenv "LIBVIRT_API_COVERAGE" "whynot")
(invoke "python" "setup.py" "test")))))))
(inputs (inputs
`(("libvirt" ,libvirt))) `(("libvirt" ,libvirt)))
(propagated-inputs (propagated-inputs
`(("python-lxml" ,python-lxml))) `(("python-lxml" ,python-lxml)))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config) `(("pkg-config" ,pkg-config)
("python-nose" ,python-nose))) ("python-pytest" ,python-pytest)))
(home-page "https://libvirt.org") (home-page "https://libvirt.org")
(synopsis "Python bindings to libvirt") (synopsis "Python bindings to libvirt")
(description "This package provides Python bindings to the libvirt (description "This package provides Python bindings to the libvirt