mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
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:
parent
8cec10f602
commit
8ac0d4fb4e
1 changed files with 12 additions and 11 deletions
|
@ -1197,33 +1197,34 @@ (define-public libvirt-glib
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue